From: kasperl@chromium.org Date: Wed, 9 Sep 2009 12:08:40 +0000 (+0000) Subject: Fix x64 port by using 32 pages per chunk. X-Git-Tag: upstream/4.7.83~23302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00c3a0deaad42143701043390dc145c4c6ea50d9;p=platform%2Fupstream%2Fv8.git Fix x64 port by using 32 pages per chunk. TBR=ager@chromium.org Review URL: http://codereview.chromium.org/195038 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2860 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/spaces.h b/src/spaces.h index ee3f591..babdd3f 100644 --- a/src/spaces.h +++ b/src/spaces.h @@ -447,7 +447,11 @@ class MemoryAllocator : public AllStatic { static const int kMaxNofChunks = 1 << Page::kPageSizeBits; // If a chunk has at least 16 pages, the maximum heap size is about // 8K * 8K * 16 = 1G bytes. +#ifdef V8_TARGET_ARCH_X64 + static const int kPagesPerChunk = 32; +#else static const int kPagesPerChunk = 16; +#endif static const int kChunkSize = kPagesPerChunk * Page::kPageSize; private: