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

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

Issue 1125613002: Oilpan: handle thread-local weak tracing slightly better. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename some methods Created 5 years, 7 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
« no previous file with comments | « Source/platform/heap/StackFrameDepth.h ('k') | Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/StackFrameDepth.cpp
diff --git a/Source/platform/heap/StackFrameDepth.cpp b/Source/platform/heap/StackFrameDepth.cpp
index caae8faaa1aa296f3037cb02eb8abfd9f2e2d5e5..c118c814b2bdb23a966cb4aa70139e398bf593ea 100644
--- a/Source/platform/heap/StackFrameDepth.cpp
+++ b/Source/platform/heap/StackFrameDepth.cpp
@@ -20,6 +20,9 @@ namespace blink {
static const char* s_avoidOptimization = nullptr;
uintptr_t StackFrameDepth::s_stackFrameLimit = 0;
+#if ENABLE(ASSERT)
+bool StackFrameDepth::s_isEnabled = false;
+#endif
// NEVER_INLINE ensures that |dummy| array on configureLimit() is not optimized away,
// and the stack frame base register is adjusted |kSafeStackFrameSize|.
@@ -29,8 +32,12 @@ NEVER_INLINE static uintptr_t currentStackFrameBaseOnCallee(const char* dummy)
return StackFrameDepth::currentStackFrame();
}
-void StackFrameDepth::configureStackLimit()
+void StackFrameDepth::enableStackLimit()
{
+#if ENABLE(ASSERT)
+ s_isEnabled = true;
+#endif
+
static const int kStackRoomSize = 1024;
size_t stackSize = getUnderestimatedStackSize();
« no previous file with comments | « Source/platform/heap/StackFrameDepth.h ('k') | Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698