DescriptionSet the stack limit size based on estimated sizes.
To check if the stack memory has enough room for recursive
calls, we tried to allocate a large object and assumed the size.
This CL estimate the real thread stack limit using APIs.
On some platforms where such APIs do not work correctly,
we set the limit using the old algorithm.
On ASAN build, we disable it because sanitizer creates and uses "fake stacks".
---
This CL is re-land of https://codereview.chromium.org/910663002/, https://codereview.chromium.org/927213002/, and https://codereview.chromium.org/943293002/.
Test was changed in another CL.
BUG=420515, 457982
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190738
Patch Set 1 #Patch Set 2 : Disable on ASAN #Patch Set 3 : Update comments #
Messages
Total messages: 8 (3 generated)
|