Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp

Issue 2326523004: Revert of StackFrameDepth should be managed per ThreadHeap (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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())
« no previous file with comments | « third_party/WebKit/Source/platform/heap/StackFrameDepth.h ('k') | third_party/WebKit/Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698