Lines Matching refs:MemprofThread
74 MemprofThread *MemprofThread::Create(thread_callback_t start_routine, void *arg, in Create()
78 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create()
79 MemprofThread *thread = (MemprofThread *)MmapOrDie(size, __func__); in Create()
89 void MemprofThread::TSDDtor(void *tsd) { in TSDDtor()
96 void MemprofThread::Destroy() { in Destroy()
103 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
108 inline MemprofThread::StackBounds MemprofThread::GetStackBounds() const { in GetStackBounds()
114 uptr MemprofThread::stack_top() { return GetStackBounds().top; } in stack_top()
116 uptr MemprofThread::stack_bottom() { return GetStackBounds().bottom; } in stack_bottom()
118 uptr MemprofThread::stack_size() { in stack_size()
123 void MemprofThread::Init(const InitOptions *options) { in Init()
138 MemprofThread::ThreadStart(tid_t os_id, in ThreadStart()
157 MemprofThread *CreateMainThread() { in CreateMainThread()
158 MemprofThread *main_thread = MemprofThread::Create( in CreateMainThread()
170 void MemprofThread::SetThreadStackAndTls(const InitOptions *options) { in SetThreadStackAndTls()
186 bool MemprofThread::AddrIsInStack(uptr addr) { in AddrIsInStack()
191 MemprofThread *GetCurrentThread() { in GetCurrentThread()
199 void SetCurrentThread(MemprofThread *t) { in SetCurrentThread()
210 MemprofThread *t = GetCurrentThread(); in GetCurrentTidOrInvalid()