Index: Source/platform/heap/TraceTraits.h |
diff --git a/Source/platform/heap/TraceTraits.h b/Source/platform/heap/TraceTraits.h |
index a463dd925857759346f065bac41b2bc2d5fa755f..580a59e3c5251d7d9c61bd56223eebf0100fe99a 100644 |
--- a/Source/platform/heap/TraceTraits.h |
+++ b/Source/platform/heap/TraceTraits.h |
@@ -56,7 +56,7 @@ public: |
// enabled so as to avoid testing against a much lower & too low, |
// stack depth threshold. |
#if !defined(ADDRESS_SANITIZER) |
- ASSERT(StackFrameDepth::isSafeToRecurse()); |
+ ASSERT(!StackFrameDepth::isEnabled() || StackFrameDepth::isSafeToRecurse()); |
#endif |
if (LIKELY(StackFrameDepth::isSafeToRecurse())) { |
if (visitor->ensureMarked(t)) { |