/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_posix.cpp | 77 struct tsd_key { struct 78 tsd_key() : key(nullptr) {} in tsd_key() function 79 ~tsd_key() { in ~tsd_key() argument 87 static thread_local struct tsd_key key; 115 static pthread_key_t tsd_key; variable 120 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in AsanTSDInit() 125 return pthread_getspecific(tsd_key); in AsanTSDGet() 130 pthread_setspecific(tsd_key, tsd); in AsanTSDSet() 137 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_posix.cpp | 28 static pthread_key_t tsd_key; variable 33 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in TSDInit() 38 return pthread_getspecific(tsd_key); in TSDGet() 43 pthread_setspecific(tsd_key, tsd); in TSDSet() 50 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
|
/external/compiler-rt/lib/asan/ |
D | asan_posix.cc | 97 static pthread_key_t tsd_key; variable 102 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in AsanTSDInit() 107 return pthread_getspecific(tsd_key); in AsanTSDGet() 112 pthread_setspecific(tsd_key, tsd); in AsanTSDSet() 119 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
|
/external/llvm-project/compiler-rt/lib/msan/ |
D | msan_linux.cpp | 184 struct tsd_key { struct 185 tsd_key() : key(nullptr) {} in tsd_key() argument 186 ~tsd_key() { in ~tsd_key() argument 194 static thread_local struct tsd_key key; 222 static pthread_key_t tsd_key; variable 228 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit() 243 pthread_setspecific(tsd_key, (void *)t); in SetCurrentThread() 250 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | tsd_dtor_leak.cc | 11 static pthread_key_t tsd_key; variable 14 pthread_setspecific(tsd_key, malloc(10)); in Thread() 27 assert(0 == pthread_key_create(&tsd_key, Dtor)); in main()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/Posix/ |
D | tsd_dtor_leak.cpp | 12 static pthread_key_t tsd_key; variable 15 pthread_setspecific(tsd_key, malloc(10)); in Thread() 28 assert(0 == pthread_key_create(&tsd_key, Dtor)); in main()
|
/external/compiler-rt/lib/msan/ |
D | msan_linux.cc | 176 static pthread_key_t tsd_key; variable 182 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit() 197 pthread_setspecific(tsd_key, (void *)t); in SetCurrentThread() 204 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
|
/external/llvm-project/compiler-rt/lib/hwasan/ |
D | hwasan_linux.cpp | 255 static pthread_key_t tsd_key; variable 260 CHECK_EQ(0, pthread_setspecific(tsd_key, in HwasanTSDThreadInit() 267 CHECK_EQ(0, pthread_setspecific(tsd_key, (void *)(iterations - 1))); in HwasanTSDDtor() 276 CHECK_EQ(0, pthread_key_create(&tsd_key, HwasanTSDDtor)); in HwasanTSDInit()
|