[compiler-rt] [tsan] Fix dead lock when starting StackDepot thread (PR #96456)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 08:42:24 PDT 2024
================
@@ -1088,7 +1088,18 @@ TSAN_INTERCEPTOR(int, pthread_join, void *th, void **ret) {
return res;
}
-DEFINE_REAL_PTHREAD_FUNCTIONS
+// DEFINE_REAL_PTHREAD_FUNCTIONS
+namespace __sanitizer {
+int real_pthread_create(void *th, void *attr, void *(*callback)(void *),
+ void *param) {
+ ScopedIgnoreInterceptors ignore;
----------------
vitalybuka wrote:
I will rename real_pthread_create -> create_internal thread, or something in followup patch.
https://github.com/llvm/llvm-project/pull/96456
More information about the llvm-commits
mailing list