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
This commit is contained in:
kmillikin@chromium.org 2008-10-29 10:00:38 +00:00
parent d9285da2a8
commit 3450c12ffb

View File

@ -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<Map*>(HeapObject::FromAddress(0));
int lo_size = Page::kPageSize;