Index: test/cctest/test-constantpool.cc |
diff --git a/test/cctest/test-constantpool.cc b/test/cctest/test-constantpool.cc |
index 453657609eb1532b1a2714e5541c5467e0b9747f..8b9b2cf73a6cb1d640871efcbdc51beeca40af83 100644 |
--- a/test/cctest/test-constantpool.cc |
+++ b/test/cctest/test-constantpool.cc |
@@ -284,8 +284,9 @@ TEST(ConstantPoolCompacting) { |
Page* first_page = heap->old_data_space()->anchor()->next_page(); |
{ |
HandleScope scope(isolate); |
+ int dummy_array_size = Page::kMaxRegularHeapObjectSize - 92 * KB; |
Handle<HeapObject> temp = |
- factory->NewFixedDoubleArray(900 * KB / kDoubleSize, TENURED); |
+ factory->NewFixedDoubleArray(dummy_array_size / kDoubleSize, TENURED); |
CHECK(heap->InOldDataSpace(temp->address())); |
Handle<HeapObject> heap_ptr = |
factory->NewHeapNumber(5.0, IMMUTABLE, TENURED); |