Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index 626df16617128ca371283b4657d97e2fe4a407d3..0d8c00d2e10283d9f79ae5510f915e8ba84d5f2f 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -119,10 +119,8 @@ TEST(NoPromotion) { |
HEAP->CollectGarbage(OLD_POINTER_SPACE); |
// Allocate a big Fixed array in the new space. |
- int max_size = |
- Min(Page::kMaxNonCodeHeapObjectSize, HEAP->MaxObjectSizeInNewSpace()); |
- |
- int length = (max_size - FixedArray::kHeaderSize) / (2*kPointerSize); |
+ int length = (Page::kMaxNonCodeHeapObjectSize - |
+ FixedArray::kHeaderSize) / (2 * kPointerSize); |
Object* obj = i::Isolate::Current()->heap()->AllocateFixedArray(length)-> |
ToObjectChecked(); |