From 3450c12ffb301bbb1c3ea1c0744e0bbb6d7c858a Mon Sep 17 00:00:00 2001 From: "kmillikin@chromium.org" Date: Wed, 29 Oct 2008 10:00:38 +0000 Subject: [PATCH] Because allocation in large object space can now require checking the size of the entire old generation, the heap must be (more) properly set up to test the large object space. Review URL: http://codereview.chromium.org/8872 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@634 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-spaces.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc index 86aa5f8..d946a7f 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; -- 2.7.4