| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index f975630943acb6fab54305084c4625e04e9d8617..624969f45f09820ee4a22183e77f1431a1619e06 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -77,6 +77,8 @@ TEST(Promotion) {
|
| // skip the entire test.
|
| if (FLAG_never_compact) return;
|
|
|
| + CcTest::InitializeVM();
|
| +
|
| // Ensure that we get a compacting collection so that objects are promoted
|
| // from new space.
|
| FLAG_gc_global = true;
|
| @@ -84,8 +86,6 @@ TEST(Promotion) {
|
| Heap* heap = CcTest::heap();
|
| heap->ConfigureHeap(2*256*KB, 8*MB, 8*MB);
|
|
|
| - CcTest::InitializeVM();
|
| -
|
| v8::HandleScope sc(CcTest::isolate());
|
|
|
| // Allocate a fixed array in the new space.
|
| @@ -108,12 +108,12 @@ TEST(Promotion) {
|
|
|
|
|
| TEST(NoPromotion) {
|
| - CcTest::heap()->ConfigureHeap(2*256*KB, 8*MB, 8*MB);
|
| -
|
| // Test the situation that some objects in new space are promoted to
|
| // the old space
|
| CcTest::InitializeVM();
|
|
|
| + CcTest::heap()->ConfigureHeap(2*256*KB, 8*MB, 8*MB);
|
| +
|
| v8::HandleScope sc(CcTest::isolate());
|
|
|
| // Do a mark compact GC to shrink the heap.
|
|
|