Author: [EMAIL PROTECTED]
Date: Wed Oct 29 03:00:38 2008
New Revision: 634

Modified:
    branches/bleeding_edge/test/cctest/test-spaces.cc

Log:
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

Modified: branches/bleeding_edge/test/cctest/test-spaces.cc
==============================================================================
--- branches/bleeding_edge/test/cctest/test-spaces.cc   (original)
+++ branches/bleeding_edge/test/cctest/test-spaces.cc   Wed Oct 29 03:00:38  
2008
@@ -207,13 +207,10 @@


  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;

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to