Lines Matching refs:AsanThread
71 AsanThread *curr_thread = GetCurrentThread();
105 // (below) will call AsanThread::TSDDtor directly.
113 return RoundUpTo(sizeof(AsanThread), _zx_system_get_page_size());
116 struct AsanThread::InitOptions {
121 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid,
123 // In lieu of AsanThread::Create.
124 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__);
138 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) {
148 AsanThread *CreateMainThread() {
153 AsanThread *t = CreateAsanThread(
159 // We need to set the current thread before calling AsanThread::Init() below,
164 const AsanThread::InitOptions options = {__sanitizer::MainThreadStackBase,
184 AsanThread *thread = CreateAsanThread(&stack, parent_tid, detached, name);
186 // On other systems, AsanThread::Init() is called from the new
189 const AsanThread::InitOptions options = {stack_bottom, stack_size};
197 AsanThread *thread = static_cast<AsanThread *>(hook);
213 AsanThread *thread = static_cast<AsanThread *>(hook);
216 // In lieu of AsanThread::ThreadStart.
225 AsanThread::TSDDtor(per_thread);