Home
last modified time | relevance | path

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

/external/compiler-rt/lib/lsan/
Dlsan_thread.cc26 static ThreadRegistry *thread_registry; variable
39 thread_registry = new(thread_registry_placeholder) in InitializeThreadRegistry()
81 return thread_registry->CreateThread(user_id, detached, parent_tid, in ThreadCreate()
94 thread_registry->StartThread(tid, os_id, &args); in ThreadStart()
98 thread_registry->FinishThread(GetCurrentThread()); in ThreadFinish()
102 if (!thread_registry) return nullptr; in CurrentThreadContext()
106 return (ThreadContext *)thread_registry->GetThreadLocked(GetCurrentThread()); in CurrentThreadContext()
118 return thread_registry->FindThread(FindThreadByUid, (void*)uid); in ThreadTid()
123 thread_registry->JoinThread(tid, /* arg */nullptr); in ThreadJoin()
137 thread_registry->FindThreadContextByOsIDLocked(os_id)); in GetThreadRangesLocked()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc214 ThreadRegistryLock l(ctx->thread_registry); in ThreadFinalize()
216 ctx->thread_registry->RunCallbackForEachThreadLocked( in ThreadFinalize()
229 ctx->thread_registry->GetNumberOfThreads(0, 0, &result); in ThreadCount()
238 ctx->thread_registry->CreateThread(uid, detached, parent_tid, &args); in ThreadCreate()
240 StatSet(thr, StatThreadMaxAlive, ctx->thread_registry->GetMaxAliveThreads()); in ThreadCreate()
272 ThreadRegistry *tr = ctx->thread_registry; in ThreadStart()
297 ctx->thread_registry->FinishThread(thr->tid); in ThreadFinish()
310 int res = ctx->thread_registry->FindThread(FindThreadByUid, (void*)uid); in ThreadTid()
319 ctx->thread_registry->JoinThread(tid, thr); in ThreadJoin()
325 ctx->thread_registry->DetachThread(tid, thr); in ThreadDetach()
[all …]
Dtsan_rtl_report.cc138 ctx->thread_registry->CheckLocked(); in ScopedReport()
209 ctx->thread_registry->CheckLocked(); in FindThreadByUidLocked()
211 ctx->thread_registry->FindThreadContextLocked( in FindThreadByUidLocked()
216 ctx->thread_registry->CheckLocked(); in FindThreadByTidLocked()
218 ctx->thread_registry->GetThreadLocked(tid)); in FindThreadByTidLocked()
233 ctx->thread_registry->CheckLocked(); in IsThreadStackOrTls()
235 ctx->thread_registry->FindThreadContextLocked(IsInStackOrTls, in IsThreadStackOrTls()
634 ThreadRegistryLock l0(ctx->thread_registry); in ReportRace()
644 ctx->thread_registry->GetThreadLocked(s.tid())); in ReportRace()
Dtsan_rtl_mutex.cc55 ThreadRegistryLock l(ctx->thread_registry); in ReportMutexMisuse()
120 ThreadRegistryLock l(ctx->thread_registry); in MutexDestroy()
375 ThreadRegistryLock l(ctx->thread_registry); in AcquireGlobal()
376 ctx->thread_registry->RunCallbackForEachThreadLocked( in AcquireGlobal()
419 ThreadRegistryLock l(ctx->thread_registry); in AfterSleep()
420 ctx->thread_registry->RunCallbackForEachThreadLocked( in AfterSleep()
464 ThreadRegistryLock l(ctx->thread_registry); in ReportDeadlock()
Dtsan_rtl.cc100 , thread_registry(new(thread_registry_placeholder) ThreadRegistry( in Context()
139 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads); in MemoryProfiler()
431 ctx->thread_registry->Lock(); in ForkBefore()
437 ctx->thread_registry->Unlock(); in ForkParentAfter()
442 ctx->thread_registry->Unlock(); in ForkChildAfter()
445 ctx->thread_registry->GetNumberOfThreads(0, 0, &nthread /* alive threads */); in ForkChildAfter()
Dtsan_mman.cc92 ThreadRegistryLock l(ctx->thread_registry); in SignalUnsafeCall()
Dtsan_rtl.h488 ThreadRegistry *thread_registry; member
Dtsan_interceptors.cc1965 ThreadRegistryLock l(ctx->thread_registry); in CallUserSignalHandler()
2376 __tsan::ctx->thread_registry->SetThreadNameByUserId(thread, name)