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() |