Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index d09c128d177a256dd155cd5d55e2bc3d63ce5f33..27ebc76a2a44cb8c7c1e1adbfaff40d538d18f9e 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -205,7 +205,9 @@ static void VerifyMemoryChunk(Isolate* isolate, |
TEST(Regress3540) { |
Isolate* isolate = CcTest::i_isolate(); |
+ isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
+ CHECK(heap->ConfigureHeapDefault()); |
MemoryAllocator* memory_allocator = new MemoryAllocator(isolate); |
CHECK( |
memory_allocator->SetUp(heap->MaxReserved(), heap->MaxExecutableSize())); |
@@ -239,7 +241,9 @@ static unsigned int Pseudorandom() { |
TEST(MemoryChunk) { |
Isolate* isolate = CcTest::i_isolate(); |
+ isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
+ CHECK(heap->ConfigureHeapDefault()); |
size_t reserve_area_size = 1 * MB; |
size_t initial_commit_area_size, second_commit_area_size; |
@@ -293,7 +297,9 @@ TEST(MemoryChunk) { |
TEST(MemoryAllocator) { |
Isolate* isolate = CcTest::i_isolate(); |
+ isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
+ CHECK(isolate->heap()->ConfigureHeapDefault()); |
MemoryAllocator* memory_allocator = new MemoryAllocator(isolate); |
CHECK(memory_allocator->SetUp(heap->MaxReserved(), |
@@ -340,7 +346,9 @@ TEST(MemoryAllocator) { |
TEST(NewSpace) { |
Isolate* isolate = CcTest::i_isolate(); |
+ isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
+ CHECK(heap->ConfigureHeapDefault()); |
MemoryAllocator* memory_allocator = new MemoryAllocator(isolate); |
CHECK(memory_allocator->SetUp(heap->MaxReserved(), |
heap->MaxExecutableSize())); |
@@ -366,7 +374,9 @@ TEST(NewSpace) { |
TEST(OldSpace) { |
Isolate* isolate = CcTest::i_isolate(); |
+ isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
+ CHECK(heap->ConfigureHeapDefault()); |
MemoryAllocator* memory_allocator = new MemoryAllocator(isolate); |
CHECK(memory_allocator->SetUp(heap->MaxReserved(), |
heap->MaxExecutableSize())); |