Set 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 Review URL: https://codereview.chromium.org/955563002 git-svn-id: svn://svn.chromium.org/blink/trunk@190738 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment