Revision: 2856
Author: [email protected]
Date: Wed Sep  9 03:56:13 2009
Log: Reduce the chunk size from 64 pages to 16 pages per chunk.

This reduces the initial V8 memory usage by roughly 2MB.

Review URL: http://codereview.chromium.org/194054
http://code.google.com/p/v8/source/detail?r=2856

Modified:
  /branches/bleeding_edge/src/spaces.h

=======================================
--- /branches/bleeding_edge/src/spaces.h        Fri Aug 21 06:14:53 2009
+++ /branches/bleeding_edge/src/spaces.h        Wed Sep  9 03:56:13 2009
@@ -445,13 +445,9 @@

    // Due to encoding limitation, we can only have 8K chunks.
    static const int kMaxNofChunks = 1 << Page::kPageSizeBits;
-  // If a chunk has at least 32 pages, the maximum heap size is about
-  // 8 * 1024 * 32 * 8K = 2G bytes.
-#if defined(ANDROID)
+  // If a chunk has at least 16 pages, the maximum heap size is about
+  // 8k * 8K * 16 = 1G bytes.
    static const int kPagesPerChunk = 16;
-#else
-  static const int kPagesPerChunk = 64;
-#endif
    static const int kChunkSize = kPagesPerChunk * Page::kPageSize;

   private:

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

Reply via email to