Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index 958fe190cff5393806da93aa53d07cdc0dae781a..72d88c4825b31e356040f7c93fea4c3d8bfa0119 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -757,17 +757,19 @@ double GCTracer::SizeOfHeapObjects() { |
} |
-#ifdef DEBUG |
DisallowAllocationFailure::DisallowAllocationFailure() { |
+#ifdef DEBUG |
old_state_ = HEAP->disallow_allocation_failure_; |
HEAP->disallow_allocation_failure_ = true; |
+#endif |
} |
DisallowAllocationFailure::~DisallowAllocationFailure() { |
+#ifdef DEBUG |
HEAP->disallow_allocation_failure_ = old_state_; |
-} |
#endif |
+} |
#ifdef DEBUG |