Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 577675f0a1e7a69805d52fe765c81b88189f66b3..6099f7610c25132fa7615168ec640c91bf72b210 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -3514,6 +3514,13 @@ TEST(ReleaseOverReservedPages) { |
// The optimizer can allocate stuff, messing up the test. |
i::FLAG_crankshaft = false; |
i::FLAG_always_opt = false; |
+ // Parallel compaction increases fragmentation, depending on how existing |
+ // memory is distributed. Since this is non-deterministic because of |
+ // concurrent sweeping, we disable it for this test. |
+ i::FLAG_parallel_compaction = false; |
+ // Concurrent sweeping adds non determinism, depending on when memory is |
+ // available for further reuse. |
+ i::FLAG_concurrent_sweeping = false; |
CcTest::InitializeVM(); |
Isolate* isolate = CcTest::i_isolate(); |
Factory* factory = isolate->factory(); |