Searched refs:thread_registry (Results 1 – 8 of 8) sorted by relevance
/external/compiler-rt/lib/lsan/ |
D | lsan_thread.cc | 26 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 0; 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 */0); in ThreadJoin() 137 thread_registry->FindThreadContextByOsIDLocked(os_id)); in GetThreadRangesLocked() [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_thread.cc | 212 ThreadRegistryLock l(ctx->thread_registry); in ThreadFinalize() 214 ctx->thread_registry->RunCallbackForEachThreadLocked( in ThreadFinalize() 227 ctx->thread_registry->GetNumberOfThreads(0, 0, &result); in ThreadCount() 234 int tid = ctx->thread_registry->CreateThread(uid, detached, thr->tid, &args); in ThreadCreate() 236 StatSet(thr, StatThreadMaxAlive, ctx->thread_registry->GetMaxAliveThreads()); in ThreadCreate() 268 ThreadRegistry *tr = ctx->thread_registry; in ThreadStart() 293 ctx->thread_registry->FinishThread(thr->tid); in ThreadFinish() 306 int res = ctx->thread_registry->FindThread(FindThreadByUid, (void*)uid); in ThreadTid() 315 ctx->thread_registry->JoinThread(tid, thr); in ThreadJoin() 321 ctx->thread_registry->DetachThread(tid, thr); in ThreadDetach() [all …]
|
D | tsan_rtl_report.cc | 138 ctx->thread_registry->CheckLocked(); in ScopedReport() 204 ctx->thread_registry->CheckLocked(); in FindThreadByUidLocked() 207 ctx->thread_registry->GetThreadLocked(i)); 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() 372 ctx->thread_registry->CheckLocked(); in RestoreStack() 374 ctx->thread_registry->GetThreadLocked(tid)); in RestoreStack() 598 ThreadRegistryLock l0(ctx->thread_registry); in ReportRace() [all …]
|
D | tsan_rtl_mutex.cc | 55 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()
|
D | tsan_rtl.cc | 96 , thread_registry(new(thread_registry_placeholder) ThreadRegistry( in Context() 133 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads); in MemoryProfiler() 417 ctx->thread_registry->Lock(); in ForkBefore() 423 ctx->thread_registry->Unlock(); in ForkParentAfter() 428 ctx->thread_registry->Unlock(); in ForkChildAfter() 431 ctx->thread_registry->GetNumberOfThreads(0, 0, &nthread /* alive threads */); in ForkChildAfter()
|
D | tsan_mman.cc | 71 ThreadRegistryLock l(ctx->thread_registry); in SignalUnsafeCall()
|
D | tsan_rtl.h | 481 ThreadRegistry *thread_registry; member
|
D | tsan_interceptors.cc | 1991 ThreadRegistryLock l(ctx->thread_registry); in CallUserSignalHandler() 2350 __tsan::ctx->thread_registry->SetThreadNameByUserId(thread, name)
|