File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,14 @@ FakeStack *FakeStack::Create(uptr stack_size_log) {
6262 : MmapOrDie (padded_size, " FakeStack" ));
6363 // GetFrame() requires the property that
6464 // (res + kFlagsOffset + SizeRequiredForFlags(stack_size_log)) is aligned to
65- // (1 << kMaxStackFrameSizeLog) .
65+ // kMaxStackFrameSize .
6666 // We didn't use MmapAlignedOrDieOnFatalError, because it requires that the
6767 // *size* is a power of 2, which is an overly strong condition.
6868 static_assert (alignof (FakeStack) <= kMaxStackFrameSize );
6969 FakeStack *res = reinterpret_cast <FakeStack *>(
7070 RoundUpTo (
7171 (uptr)true_res + kFlagsOffset + SizeRequiredForFlags (stack_size_log),
72- 1 << kMaxStackFrameSizeLog ) -
72+ kMaxStackFrameSize ) -
7373 kFlagsOffset - SizeRequiredForFlags (stack_size_log));
7474 res->true_start = true_res;
7575 res->stack_size_log_ = stack_size_log;
You can’t perform that action at this time.
0 commit comments