From patchwork Sat Feb 15 14:33:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1238541 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109810-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=XIMyQVYy; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48KXn00RKpz9sNg for ; Sun, 16 Feb 2020 01:33:55 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=Jm+ jmiItN6Uo86HtBfdttnRwaaER2l1POFwh4RU3pWyHV82ltho/cu82zfOuBKMLpw6 lvtevTjA5CJ3TTnn82T8J8u0uBobrgwMyJB99SVreujxkn5a7IgnjantMmigcJsU kvEHNOXA9U0UXdgavXW/TdUiJpre6fvaMFZ9SbtM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=wQHZAiUjO Euu/RtsnwE8CgM5YZo=; b=XIMyQVYy53L6ZgMSPVHzmBHMVym48wqrOVZ1fqsGn kN4bCgFQUmEvYjiVZdd+6BPuhjlJBtghjjbH70rVixy6zZKVHX/iGS9E2wxSAf7B SAVIOAmeOW33rlp87uvnGc1+W6ljX64veNzJWGk3gWA8ixt9rgChOD5tGAt2BTqJ E4= Received: (qmail 123988 invoked by alias); 15 Feb 2020 14:33:49 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 123970 invoked by uid 89); 15 Feb 2020 14:33:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=htl, sk:__alway, HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd, commited] htl: Only check pthread_self coherency when DEBUG is set Date: Sat, 15 Feb 2020 06:33:33 -0800 Message-Id: <20200215143333.135999-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 htl has been widely tested for a long time now with this coherency checked successfully. --- sysdeps/mach/hurd/htl/pt-sysdep.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/mach/hurd/htl/pt-sysdep.h b/sysdeps/mach/hurd/htl/pt-sysdep.h index c837415a9a..484d024bb0 100644 --- a/sysdeps/mach/hurd/htl/pt-sysdep.h +++ b/sysdeps/mach/hurd/htl/pt-sysdep.h @@ -32,6 +32,7 @@ mach_msg_header_t wakeupmsg; extern __thread struct __pthread *___pthread_self; +#ifdef DEBUG #define _pthread_self() \ ({ \ struct __pthread *thread; \ @@ -46,6 +47,9 @@ extern __thread struct __pthread *___pthread_self; ok; })); \ thread; \ }) +#else +#define _pthread_self() ___pthread_self +#endif extern inline void __attribute__ ((__always_inline__))