Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 74fb9bc5dd1cc560312bc5bd823966633e37984e..00b8ba802eb91089e08681be7aa8e92a888123a6 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -3699,6 +3699,7 @@ TEST(ObjectsInOptimizedCodeAreWeak) { |
} |
+#ifdef DEBUG |
TEST(AddInstructionChangesNewSpacePromotion) { |
i::FLAG_allow_natives_syntax = true; |
i::FLAG_expose_gc = true; |
@@ -3739,3 +3740,4 @@ TEST(AddInstructionChangesNewSpacePromotion) { |
g->Call(global, 1, args1); |
heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); |
} |
+#endif |