Index: src/heap.cc |
=================================================================== |
--- src/heap.cc (revision 3484) |
+++ src/heap.cc (working copy) |
@@ -3433,7 +3433,10 @@ |
if (!code_space_->Setup(NULL, 0)) return false; |
// Initialize map space. |
- map_space_ = new MapSpace(kMaxMapSpaceSize, MAP_SPACE); |
+ map_space_ = new MapSpace(FLAG_use_big_map_space |
+ ? max_old_generation_size_ |
+ : (MapSpace::kMaxMapPageIndex + 1) * Page::kPageSize, |
+ MAP_SPACE); |
if (map_space_ == NULL) return false; |
if (!map_space_->Setup(NULL, 0)) return false; |