Home | History | Annotate | Download | only in rtl

Lines Matching refs:ThreadState

70 // the ThreadState object. The main thread's ThreadState is stored separately
74 ALIGNED(64) static char main_thread_state[sizeof(ThreadState)];
76 ThreadState *cur_thread() {
79 return (ThreadState *)&main_thread_state;
81 ThreadState **fake_tls = (ThreadState **)MemToShadow(thread_identity);
82 ThreadState *thr = (ThreadState *)SignalSafeGetOrAllocate(
83 (uptr *)fake_tls, sizeof(ThreadState));
89 // handler will try to access the unmapped ThreadState.
94 // exit the main thread. Let's keep the main thread's ThreadState.
97 ThreadState **fake_tls = (ThreadState **)MemToShadow(thread_identity);
98 internal_munmap(*fake_tls, sizeof(ThreadState));
136 ThreadState *thr = cur_thread();
139 ThreadState *parent_thread_state = nullptr; // No parent.
146 ThreadState *thr = cur_thread();