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()
88 void MemprofThread::TSDDtor(void *tsd) { in TSDDtor()
95 void MemprofThread::Destroy() { in Destroy()
102 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
107 inline MemprofThread::StackBounds MemprofThread::GetStackBounds() const { in GetStackBounds()
113 uptr MemprofThread::stack_top() { return GetStackBounds().top; } in stack_top()
115 uptr MemprofThread::stack_bottom() { return GetStackBounds().bottom; } in stack_bottom()
117 uptr MemprofThread::stack_size() { in stack_size()
122 void MemprofThread::Init(const InitOptions *options) { in Init()
137 MemprofThread::ThreadStart(tid_t os_id, in ThreadStart()
156 MemprofThread *CreateMainThread() { in CreateMainThread()
157 MemprofThread *main_thread = MemprofThread::Create( in CreateMainThread()
169 void MemprofThread::SetThreadStackAndTls(const InitOptions *options) { in SetThreadStackAndTls()
185 bool MemprofThread::AddrIsInStack(uptr addr) { in AddrIsInStack()
190 MemprofThread *GetCurrentThread() { in GetCurrentThread()
198 void SetCurrentThread(MemprofThread *t) { in SetCurrentThread()
209 MemprofThread *t = GetCurrentThread(); in GetCurrentTidOrInvalid()