Lines Matching refs:shadow_stack
156 shadow_stack = static_cast<uptr *>( in ThreadState()
158 SetShadowRegionHugePageMode(reinterpret_cast<uptr>(shadow_stack), in ThreadState()
163 shadow_stack = static_cast<uptr *>(Alloc(kInitStackSize * sizeof(uptr))); in ThreadState()
165 shadow_stack_pos = shadow_stack; in ThreadState()
166 shadow_stack_end = shadow_stack + kInitStackSize; in ThreadState()
589 const int sz = thr->shadow_stack_end - thr->shadow_stack; in GrowShadowStack()
592 internal_memcpy(newstack, thr->shadow_stack, sz * sizeof(uptr)); in GrowShadowStack()
593 Free(thr->shadow_stack); in GrowShadowStack()
594 thr->shadow_stack = newstack; in GrowShadowStack()
614 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId()
674 for (uptr *pos = &thr->shadow_stack[0]; pos < thr->shadow_stack_pos; pos++) in TraceSwitchPart()
754 return thr->shadow_stack_pos - thr->shadow_stack; in __tsan_testonly_shadow_stack_current_size()