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

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

Issue 1778353002: If under stack pressure, do not enable eager stack use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not reset s_stackFrameLimit Created 4 years, 9 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 | « no previous file | third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/StackFrameDepth.h
diff --git a/third_party/WebKit/Source/platform/heap/StackFrameDepth.h b/third_party/WebKit/Source/platform/heap/StackFrameDepth.h
index 11dc1a34997b431308f36617c05b2488cc17d0f7..05cd6c6e58ce53527882bdc7d3606acd4e4f2db0 100644
--- a/third_party/WebKit/Source/platform/heap/StackFrameDepth.h
+++ b/third_party/WebKit/Source/platform/heap/StackFrameDepth.h
@@ -104,7 +104,8 @@ public:
StackFrameDepthScope()
{
StackFrameDepth::enableStackLimit();
- ASSERT(StackFrameDepth::isSafeToRecurse());
+ // Enabled unless under stack pressure.
+ ASSERT(StackFrameDepth::isSafeToRecurse() || !StackFrameDepth::isEnabled());
}
~StackFrameDepthScope()
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698