tsan_mutex.cc | 167 atomic_uintptr_t *singleton = (atomic_uintptr_t *)param; local in function:__tsan::singleton_thread 169 int *val = (int *)atomic_load(singleton, memory_order_acquire); 170 __tsan_acquire(singleton); 177 TEST(DISABLED_BENCH_ThreadSanitizer, Singleton) { 186 // Create the singleton. 189 atomic_uintptr_t singleton; local in function:__tsan::TEST 190 __tsan_release(&singleton); 191 atomic_store(&singleton, (uintptr_t)&val, memory_order_release); 195 pthread_create(&threads[t], 0, singleton_thread, &singleton);
|