Home
last modified time | relevance | path

Searched refs:tsd_key (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/compiler-rt/lib/asan/
Dasan_posix.cpp77 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/
Dmemprof_posix.cpp28 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/
Dasan_posix.cc97 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/
Dmsan_linux.cpp184 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/
Dtsd_dtor_leak.cc11 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/
Dtsd_dtor_leak.cpp12 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/
Dmsan_linux.cc176 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/
Dhwasan_linux.cpp255 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()