Index: test/cctest/heap/test-page-promotion.cc |
diff --git a/test/cctest/heap/test-page-promotion.cc b/test/cctest/heap/test-page-promotion.cc |
index 17096bc7ca6bf982a6f11cc9c19df679d16a2f93..beab159b8c3c174f9c0398cae3e4a4caa311586c 100644 |
--- a/test/cctest/heap/test-page-promotion.cc |
+++ b/test/cctest/heap/test-page-promotion.cc |
@@ -21,6 +21,10 @@ namespace { |
v8::Isolate* NewIsolateForPagePromotion(int min_semi_space_size = 8, |
int max_semi_space_size = 8) { |
+ // Parallel evacuation messes with fragmentation in a way that objects that |
+ // should be copied in semi space are promoted to old space because of |
+ // fragmentation. |
+ i::FLAG_parallel_compaction = false; |
i::FLAG_page_promotion = true; |
i::FLAG_page_promotion_threshold = 0; // % |
i::FLAG_min_semi_space_size = min_semi_space_size; |