Reviewers: Vyacheslav Egorov,

Description:
Reduce minimum memory use on 64 bit to one page per semispace.

Please review this at http://codereview.chromium.org/8774045/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/heap.cc
  M     test/cctest/test-mark-compact.cc


Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 10143)
+++ src/heap.cc (working copy)
@@ -80,7 +80,7 @@
 #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: test/cctest/test-mark-compact.cc
===================================================================
--- test/cctest/test-mark-compact.cc    (revision 10143)
+++ test/cctest/test-mark-compact.cc    (working copy)
@@ -528,7 +528,7 @@
   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);
   }
 }



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

Reply via email to