From: GNU Libc Maintainers Date: Mon, 13 Jul 2020 19:34:17 +0000 (+0100) Subject: git-pthread_self X-Git-Tag: archive/raspbian/2.31-1+rpi1^2~61 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cbe3b2619a34bed57232f8d2cc5375093c0d8b2b;p=glibc.git git-pthread_self commit ca843defbcbd2dc95b9342189e5dc430e9bcb743 Author: Samuel Thibault Date: Sat Feb 15 14:31:50 2020 +0000 htl: Only check pthread_self coherency when DEBUG is set htl has been widely tested for a long time now with this coherency checked successfully. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-pthread_self.diff --- diff --git a/sysdeps/mach/hurd/htl/pt-sysdep.h b/sysdeps/mach/hurd/htl/pt-sysdep.h index c837415a9..484d024bb 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__))