Searched refs:thread_registry (Results 1 – 12 of 12) sorted by relevance
| /freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_thread.cpp | 26 static ThreadRegistry *thread_registry; variable 40 thread_registry = in InitializeThreads() 65 return thread_registry->CreateThread(0, detached, parent_tid, arg); in ThreadCreate() 70 thread_registry->StartThread(tid, os_id, thread_type, arg); in ThreadStart() 73 void ThreadFinish() { thread_registry->FinishThread(GetCurrentThreadId()); } in ThreadFinish() 87 thread_registry->Lock(); in LockThreads() 93 thread_registry->Unlock(); in UnlockThreads() 97 thread_registry->CheckLocked(); in GetLsanThreadRegistryLocked() 98 return thread_registry; in GetLsanThreadRegistryLocked()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl_thread.cpp | 91 ThreadRegistryLock l(&ctx->thread_registry); in ThreadFinalize() 93 ctx->thread_registry.RunCallbackForEachThreadLocked(CollectThreadLeaks, in ThreadFinalize() 106 ctx->thread_registry.GetNumberOfThreads(0, 0, &result); in ThreadCount() 130 Tid tid = ctx->thread_registry.CreateThread(uid, detached, parent, &arg); in ThreadCreate() 154 ctx->thread_registry.StartThread(tid, os_id, thread_type, thr); in ThreadStart() 229 ThreadRegistryLock lock(&ctx->thread_registry); in ThreadFinish() 249 ctx->thread_registry.FinishThread(thr->tid); in ThreadFinish() 285 return ctx->thread_registry.ConsumeThreadUserId(uid); in ThreadConsumeTid() 297 ctx->thread_registry.JoinThread(tid, &arg); in ThreadJoin() 318 ctx->thread_registry.DetachThread(tid, thr); in ThreadDetach() [all …]
|
| H A D | tsan_rtl_report.cpp | 137 ThreadRegistryLock l(&ctx->thread_registry); in ShouldReport() 159 ctx->thread_registry.CheckLocked(); in ScopedReportBase() 227 ctx->thread_registry.CheckLocked(); in FindThreadByTidLocked() 229 ctx->thread_registry.GetThreadLocked(tid)); in FindThreadByTidLocked() 244 ctx->thread_registry.CheckLocked(); in IsThreadStackOrTls() 246 static_cast<ThreadContext *>(ctx->thread_registry.FindThreadContextLocked( in IsThreadStackOrTls() 442 ctx->thread_registry.CheckLocked(); in RestoreStack() 459 static_cast<ThreadContext *>(ctx->thread_registry.GetThreadLocked(tid)); in RestoreStack() 767 ThreadRegistryLock l0(&ctx->thread_registry); in ReportRace() 799 ctx->thread_registry.GetThreadLocked(tids[i])); in ReportRace() [all …]
|
| H A D | tsan_rtl.cpp | 137 ThreadRegistryLock lock0(&ctx->thread_registry); in DoResetImpl() 143 for (u32 i = ctx->thread_registry.NumThreadsLocked(); i--;) { in DoResetImpl() 144 ThreadContext* tctx = (ThreadContext*)ctx->thread_registry.GetThreadLocked( in DoResetImpl() 363 { ThreadRegistryLock lock(&ctx->thread_registry); } in SlotLock() 387 thread_registry([](Tid tid) -> ThreadContextBase* { in Context() 582 ThreadRegistryLock lock0(&ctx->thread_registry); in MapShadow() 814 ctx->thread_registry.Lock(); in ForkBefore() 845 ctx->thread_registry.Unlock(); in ForkAfter() 856 u32 nthread = ctx->thread_registry.OnFork(thr->tid); in ForkChildAfter()
|
| H A D | tsan_debugging.cpp | 220 ctx->thread_registry.Lock(); in __tsan_locate_address() 222 ctx->thread_registry.Unlock(); in __tsan_locate_address() 257 ThreadContextBase *tctx = ctx->thread_registry.GetThreadLocked(b->tid); in __tsan_get_alloc_stack()
|
| H A D | tsan_rtl_mutex.cpp | 58 ThreadRegistryLock l(&ctx->thread_registry); in ReportMutexMisuse() 531 ThreadRegistryLock l(&ctx->thread_registry); in ReportDeadlock() 559 ThreadRegistryLock l0(&ctx->thread_registry); in ReportDestroyLocked()
|
| H A D | tsan_platform_mac.cpp | 173 ctx->thread_registry.GetNumberOfThreads(&nthread, &nlive); in WriteMemoryProfile()
|
| H A D | tsan_platform_linux.cpp | 126 ctx->thread_registry.GetNumberOfThreads(&nthread, &nlive); in WriteMemoryProfile()
|
| H A D | tsan_interface_ann.cpp | 440 ThreadRegistryLock l(&ctx->thread_registry); in ReportMutexHeldWrongContext()
|
| H A D | tsan_mman.cpp | 185 ThreadRegistryLock l(&ctx->thread_registry); in SignalUnsafeCall()
|
| H A D | tsan_rtl.h | 317 ThreadRegistry thread_registry; member
|
| H A D | tsan_interceptors_posix.cpp | 2067 ThreadRegistryLock l(&ctx->thread_registry); in ReportErrnoSpoiling() 2517 __tsan::ctx->thread_registry.SetThreadNameByUserId(thread, name)
|