Home
last modified time | relevance | path

Searched refs:ThreadRegistry (Results 1 – 25 of 27) sorted by relevance

12

/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_thread_registry.cpp102 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory) in ThreadRegistry() function in __sanitizer::ThreadRegistry
103 : ThreadRegistry(factory, UINT32_MAX, UINT32_MAX, 0) {} in ThreadRegistry()
105 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, in ThreadRegistry() function in __sanitizer::ThreadRegistry
120 void ThreadRegistry::GetNumberOfThreads(uptr *total, uptr *running, in GetNumberOfThreads()
129 uptr ThreadRegistry::GetMaxAliveThreads() { in GetMaxAliveThreads()
134 u32 ThreadRegistry::CreateThread(uptr user_id, bool detached, u32 parent_tid, in CreateThread()
170 void ThreadRegistry::RunCallbackForEachThreadLocked(ThreadCallback cb, in RunCallbackForEachThreadLocked()
181 u32 ThreadRegistry::FindThread(FindThreadCallback cb, void *arg) { in FindThread()
192 ThreadRegistry::FindThreadContextLocked(FindThreadCallback cb, void *arg) { in FindThreadContextLocked()
208 ThreadContextBase *ThreadRegistry::FindThreadContextByOsIDLocked(tid_t os_id) { in FindThreadContextByOsIDLocked()
[all …]
H A Dsanitizer_thread_registry.h88 class MUTEX ThreadRegistry {
90 ThreadRegistry(ThreadContextFactory factory);
91 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
154 typedef GenericScopedLock<ThreadRegistry> ThreadRegistryLock;
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_thread_registry.cc101 const u32 ThreadRegistry::kUnknownTid = ~0U;
103 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, in ThreadRegistry() function in __sanitizer::ThreadRegistry
121 void ThreadRegistry::GetNumberOfThreads(uptr *total, uptr *running, in GetNumberOfThreads()
129 uptr ThreadRegistry::GetMaxAliveThreads() { in GetMaxAliveThreads()
134 u32 ThreadRegistry::CreateThread(uptr user_id, bool detached, u32 parent_tid, in CreateThread()
170 void ThreadRegistry::RunCallbackForEachThreadLocked(ThreadCallback cb, in RunCallbackForEachThreadLocked()
181 u32 ThreadRegistry::FindThread(FindThreadCallback cb, void *arg) { in FindThread()
192 ThreadRegistry::FindThreadContextLocked(FindThreadCallback cb, void *arg) { in FindThreadContextLocked()
208 ThreadContextBase *ThreadRegistry::FindThreadContextByOsIDLocked(tid_t os_id) { in FindThreadContextByOsIDLocked()
213 void ThreadRegistry::SetThreadName(u32 tid, const char *name) { in SetThreadName()
[all …]
H A Dsanitizer_thread_registry.h80 class ThreadRegistry {
84 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
148 typedef GenericScopedLock<ThreadRegistry> ThreadRegistryLock;
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_thread_registry.cc103 const u32 ThreadRegistry::kUnknownTid = ~0U;
105 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, in ThreadRegistry() function in __sanitizer::ThreadRegistry
123 void ThreadRegistry::GetNumberOfThreads(uptr *total, uptr *running, in GetNumberOfThreads()
131 uptr ThreadRegistry::GetMaxAliveThreads() { in GetMaxAliveThreads()
136 u32 ThreadRegistry::CreateThread(uptr user_id, bool detached, u32 parent_tid, in CreateThread()
172 void ThreadRegistry::RunCallbackForEachThreadLocked(ThreadCallback cb, in RunCallbackForEachThreadLocked()
183 u32 ThreadRegistry::FindThread(FindThreadCallback cb, void *arg) { in FindThread()
194 ThreadRegistry::FindThreadContextLocked(FindThreadCallback cb, void *arg) { in FindThreadContextLocked()
210 ThreadContextBase *ThreadRegistry::FindThreadContextByOsIDLocked(tid_t os_id) { in FindThreadContextByOsIDLocked()
215 void ThreadRegistry::SetThreadName(u32 tid, const char *name) { in SetThreadName()
[all …]
H A Dsanitizer_thread_registry.h82 class ThreadRegistry {
86 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
151 typedef GenericScopedLock<ThreadRegistry> ThreadRegistryLock;
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_thread_registry_test.cc35 static void CheckThreadQuantity(ThreadRegistry *registry, uptr exp_total, in CheckThreadQuantity()
67 static void TestRegistry(ThreadRegistry *registry, bool has_quarantine) { in TestRegistry()
102 EXPECT_EQ(ThreadRegistry::kUnknownTid, in TestRegistry()
106 EXPECT_EQ(ThreadRegistry::kUnknownTid, in TestRegistry()
141 ThreadRegistry quarantine_registry(GetThreadContext<ThreadContextBase>, in TEST()
146 ThreadRegistry no_quarantine_registry(GetThreadContext<ThreadContextBase>, in TEST()
162 ThreadRegistry *registry;
200 static void ThreadedTestRegistry(ThreadRegistry *registry) { in ThreadedTestRegistry()
231 ThreadRegistry registry(GetThreadContext<TestThreadContext>, in TEST()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/lsan/
H A Dlsan_thread.cpp26 static ThreadRegistry *thread_registry;
34 static ALIGNED(64) char thread_registry_placeholder[sizeof(ThreadRegistry)]; in InitializeThreadRegistry()
36 new (thread_registry_placeholder) ThreadRegistry(CreateThreadContext); in InitializeThreadRegistry()
107 ThreadRegistry *GetThreadRegistryLocked() { in GetThreadRegistryLocked()
H A Dlsan_common.h55 class ThreadRegistry; variable
227 ThreadRegistry *GetThreadRegistryLocked();
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/lsan/
H A Dlsan_thread.cc26 static ThreadRegistry *thread_registry;
37 static ALIGNED(64) char thread_registry_placeholder[sizeof(ThreadRegistry)]; in InitializeThreadRegistry()
39 ThreadRegistry(CreateThreadContext, kMaxThreads, kThreadQuarantineSize); in InitializeThreadRegistry()
158 ThreadRegistry *GetThreadRegistryLocked() { in GetThreadRegistryLocked()
H A Dlsan_common.h50 class ThreadRegistry; variable
208 ThreadRegistry *GetThreadRegistryLocked();
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/lsan/
H A Dlsan_thread.cc24 static ThreadRegistry *thread_registry;
35 static ALIGNED(64) char thread_registry_placeholder[sizeof(ThreadRegistry)]; in InitializeThreadRegistry()
37 ThreadRegistry(CreateThreadContext, kMaxThreads, kThreadQuarantineSize); in InitializeThreadRegistry()
156 ThreadRegistry *GetThreadRegistryLocked() { in GetThreadRegistryLocked()
H A Dlsan_common.h50 class ThreadRegistry; variable
208 ThreadRegistry *GetThreadRegistryLocked();
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_thread.cc44 static ALIGNED(16) char thread_registry_placeholder[sizeof(ThreadRegistry)];
45 static ThreadRegistry *asan_thread_registry;
55 ThreadRegistry &asanThreadRegistry() { in asanThreadRegistry()
64 asan_thread_registry = new(thread_registry_placeholder) ThreadRegistry( in asanThreadRegistry()
499 ThreadRegistry *GetThreadRegistryLocked() { in GetThreadRegistryLocked()
H A Dasan_thread.h184 ThreadRegistry &asanThreadRegistry();
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_thread.cc46 static ALIGNED(16) char thread_registry_placeholder[sizeof(ThreadRegistry)];
47 static ThreadRegistry *asan_thread_registry;
57 ThreadRegistry &asanThreadRegistry() { in asanThreadRegistry()
66 asan_thread_registry = new(thread_registry_placeholder) ThreadRegistry( in asanThreadRegistry()
498 ThreadRegistry *GetThreadRegistryLocked() { in GetThreadRegistryLocked()
H A Dasan_thread.h182 ThreadRegistry &asanThreadRegistry();
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_thread.cpp43 static ALIGNED(16) char thread_registry_placeholder[sizeof(ThreadRegistry)];
44 static ThreadRegistry *asan_thread_registry;
54 ThreadRegistry &asanThreadRegistry() { in asanThreadRegistry()
64 new (thread_registry_placeholder) ThreadRegistry(GetAsanThreadContext); in asanThreadRegistry()
521 ThreadRegistry *GetThreadRegistryLocked() { in GetThreadRegistryLocked()
H A Dasan_thread.h173 ThreadRegistry &asanThreadRegistry();
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/
H A Dtsan_rtl_thread.cpp163 ThreadRegistry *tr = &ctx->thread_registry; in ThreadStart()
H A Dtsan_rtl.h311 ThreadRegistry thread_registry;
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_rtl.cc66 static char thread_registry_placeholder[sizeof(ThreadRegistry)];
100 , thread_registry(new(thread_registry_placeholder) ThreadRegistry( in Context()
H A Dtsan_rtl_thread.cc257 ThreadRegistry *tr = ctx->thread_registry; in ThreadStart()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_rtl.cc68 static char thread_registry_placeholder[sizeof(ThreadRegistry)];
102 , thread_registry(new(thread_registry_placeholder) ThreadRegistry( in Context()
H A Dtsan_rtl_thread.cc259 ThreadRegistry *tr = ctx->thread_registry; in ThreadStart()

12