diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc index 86aa5f88a7..d946a7fa54 100644 --- a/test/cctest/test-spaces.cc +++ b/test/cctest/test-spaces.cc @@ -207,14 +207,11 @@ TEST(OldSpace) { TEST(LargeObjectSpace) { - CHECK(Heap::ConfigureHeapDefault()); - MemoryAllocator::Setup(Heap::MaxCapacity()); + CHECK(Heap::Setup(false)); - LargeObjectSpace* lo = new LargeObjectSpace(LO_SPACE); + LargeObjectSpace* lo = Heap::lo_space(); CHECK(lo != NULL); - CHECK(lo->Setup()); - Map* faked_map = reinterpret_cast(HeapObject::FromAddress(0)); int lo_size = Page::kPageSize;