Home
last modified time | relevance | path

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

/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_posix.cpp78 struct tsd_key { struct
79 tsd_key() : key(nullptr) {} in tsd_key() function
80 ~tsd_key() { in ~tsd_key() argument
88 static thread_local struct tsd_key key;
116 static pthread_key_t tsd_key; variable
121 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in AsanTSDInit()
126 return pthread_getspecific(tsd_key); in AsanTSDGet()
131 pthread_setspecific(tsd_key, tsd); in AsanTSDSet()
138 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in PlatformTSDDtor()
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A 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()
/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan_linux.cpp183 struct tsd_key { struct
184 tsd_key() : key(nullptr) {} in tsd_key() function
185 ~tsd_key() { in ~tsd_key() argument
193 static thread_local struct tsd_key key;
221 static pthread_key_t tsd_key; variable
227 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit()
242 pthread_setspecific(tsd_key, (void *)t); in SetCurrentThread()
249 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A 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()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_thread.cpp99 static pthread_key_t tsd_key; variable
105 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in DFsanTSDInit()
118 pthread_setspecific(tsd_key, t); in SetCurrentThread()
125 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in DFsanTSDDtor()
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_linux.cpp270 static pthread_key_t tsd_key; variable
275 CHECK_EQ(0, pthread_setspecific(tsd_key, in HwasanTSDThreadInit()
282 CHECK_EQ(0, pthread_setspecific(tsd_key, (void *)(iterations - 1))); in HwasanTSDDtor()
291 CHECK_EQ(0, pthread_key_create(&tsd_key, HwasanTSDDtor)); in HwasanTSDInit()