mirror of git://sourceware.org/git/glibc.git
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.
This commit is contained in:
parent
b65a82e4e7
commit
ca843defbc
|
|
@ -32,6 +32,7 @@
|
||||||
mach_msg_header_t wakeupmsg;
|
mach_msg_header_t wakeupmsg;
|
||||||
|
|
||||||
extern __thread struct __pthread *___pthread_self;
|
extern __thread struct __pthread *___pthread_self;
|
||||||
|
#ifdef DEBUG
|
||||||
#define _pthread_self() \
|
#define _pthread_self() \
|
||||||
({ \
|
({ \
|
||||||
struct __pthread *thread; \
|
struct __pthread *thread; \
|
||||||
|
|
@ -46,6 +47,9 @@ extern __thread struct __pthread *___pthread_self;
|
||||||
ok; })); \
|
ok; })); \
|
||||||
thread; \
|
thread; \
|
||||||
})
|
})
|
||||||
|
#else
|
||||||
|
#define _pthread_self() ___pthread_self
|
||||||
|
#endif
|
||||||
|
|
||||||
extern inline void
|
extern inline void
|
||||||
__attribute__ ((__always_inline__))
|
__attribute__ ((__always_inline__))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue