[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-commit
Subject:    [hurd, commited] htl: Only check pthread_self coherency when DEBUG is set
From:       Samuel Thibault <samuel.thibault () ens-lyon ! org>
Date:       2020-02-15 14:33:33
Message-ID: 20200215143333.135999-1-samuel.thibault () ens-lyon ! org
[Download RAW message or body]

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__))
-- 
2.24.1


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic