Lines Matching refs:shadow_stack
413 shadow_stack = static_cast<uptr*>( in ThreadState()
415 SetShadowRegionHugePageMode(reinterpret_cast<uptr>(shadow_stack), in ThreadState()
420 shadow_stack = static_cast<uptr*>(Alloc(kInitStackSize * sizeof(uptr))); in ThreadState()
422 shadow_stack_pos = shadow_stack; in ThreadState()
423 shadow_stack_end = shadow_stack + kInitStackSize; in ThreadState()
873 const int sz = thr->shadow_stack_end - thr->shadow_stack; in GrowShadowStack()
876 internal_memcpy(newstack, thr->shadow_stack, sz * sizeof(uptr)); in GrowShadowStack()
877 Free(thr->shadow_stack); in GrowShadowStack()
878 thr->shadow_stack = newstack; in GrowShadowStack()
900 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId()
985 uptr* pos = Max(&thr->shadow_stack[0], thr->shadow_stack_pos - kMaxFrames); in TraceSwitchPartImpl()
1057 return thr->shadow_stack_pos - thr->shadow_stack; in __tsan_testonly_shadow_stack_current_size()