Index: src/spaces.h |
=================================================================== |
--- src/spaces.h (revision 2459) |
+++ src/spaces.h (working copy) |
@@ -437,7 +437,11 @@ |
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) |
+ static const int kPagesPerChunk = 16; |
+#else |
static const int kPagesPerChunk = 64; |
+#endif |
static const int kChunkSize = kPagesPerChunk * Page::kPageSize; |
private: |