Home
last modified time | relevance | path

Searched refs:thread_registry (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_thread.cpp26 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 Dtsan_rtl_thread.cpp91 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 Dtsan_rtl_report.cpp137 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 Dtsan_rtl.cpp137 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 Dtsan_debugging.cpp220 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 Dtsan_rtl_mutex.cpp58 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 Dtsan_platform_mac.cpp173 ctx->thread_registry.GetNumberOfThreads(&nthread, &nlive); in WriteMemoryProfile()
H A Dtsan_platform_linux.cpp126 ctx->thread_registry.GetNumberOfThreads(&nthread, &nlive); in WriteMemoryProfile()
H A Dtsan_interface_ann.cpp440 ThreadRegistryLock l(&ctx->thread_registry); in ReportMutexHeldWrongContext()
H A Dtsan_mman.cpp185 ThreadRegistryLock l(&ctx->thread_registry); in SignalUnsafeCall()
H A Dtsan_rtl.h317 ThreadRegistry thread_registry; member
H A Dtsan_interceptors_posix.cpp2067 ThreadRegistryLock l(&ctx->thread_registry); in ReportErrnoSpoiling()
2517 __tsan::ctx->thread_registry.SetThreadNameByUserId(thread, name)