| Index: third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp b/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
|
| index 454d4242a205f3a8b27ce8145ec8c08c63cbe3cd..3c0a0395b189b1abeddc2d96353084b9ebb9439a 100644
|
| --- a/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
|
| @@ -17,6 +17,8 @@
|
| namespace blink {
|
|
|
| static const char* s_avoidOptimization = nullptr;
|
| +
|
| +uintptr_t StackFrameDepth::s_stackFrameLimit = kMinimumStackLimit;
|
|
|
| // NEVER_INLINE ensures that |dummy| array on configureLimit() is not optimized away,
|
| // and the stack frame base register is adjusted |kSafeStackFrameSize|.
|
| @@ -43,7 +45,7 @@
|
| // except if ASan is enabled.
|
| size_t stackSize = getUnderestimatedStackSize();
|
| if (!stackSize) {
|
| - m_stackFrameLimit = getFallbackStackLimit();
|
| + s_stackFrameLimit = getFallbackStackLimit();
|
| return;
|
| }
|
|
|
| @@ -53,7 +55,7 @@
|
| RELEASE_ASSERT(stackSize > static_cast<const size_t>(kStackRoomSize));
|
| size_t stackRoom = stackSize - kStackRoomSize;
|
| RELEASE_ASSERT(stackBase > reinterpret_cast<Address>(stackRoom));
|
| - m_stackFrameLimit = reinterpret_cast<uintptr_t>(stackBase - stackRoom);
|
| + s_stackFrameLimit = reinterpret_cast<uintptr_t>(stackBase - stackRoom);
|
|
|
| // If current stack use is already exceeding estimated limit, mark as disabled.
|
| if (!isSafeToRecurse())
|
|
|