Reduce minimum memory use on 64 bit to one page per semispace.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 2 Dec 2011 14:19:53 +0000 (14:19 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 2 Dec 2011 14:19:53 +0000 (14:19 +0000)
Review URL: http://codereview.chromium.org/8774045

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10144 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/heap.cc
test/cctest/test-mark-compact.cc

index 6039dc686a3e991090a826ec70f33df03a89eeb6..4feb70eb412d8558fc15c8f88116fa3c8f984df6 100644 (file)
@@ -80,7 +80,7 @@ Heap::Heap()
 #endif
       reserved_semispace_size_(8 * Max(LUMP_OF_MEMORY, Page::kPageSize)),
       max_semispace_size_(8 * Max(LUMP_OF_MEMORY, Page::kPageSize)),
-      initial_semispace_size_(Max(LUMP_OF_MEMORY, Page::kPageSize)),
+      initial_semispace_size_(Page::kPageSize),
       max_old_generation_size_(700ul * LUMP_OF_MEMORY),
       max_executable_size_(128l * LUMP_OF_MEMORY),
 
index 05abaf0b52f31137141ecbfbba3fbbe352609f47..e4c885c656ce5e95748e7a4161e28e7fe215b251 100644 (file)
@@ -528,7 +528,7 @@ TEST(BootUpMemoryUse) {
   if (initial_memory >= 0) {
     InitializeVM();
     intptr_t booted_memory = MemoryInUse();
-    CHECK_LE(booted_memory - initial_memory, 18 * 1024 * 1024);
+    CHECK_LE(booted_memory - initial_memory, 16 * 1024 * 1024);
   }
 }