Index: test/cctest/test-alloc.cc |
diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc |
index 54d516e13eb4b7b47e3ca54f81c26257e353d4b8..2e071acc73d12a3e563d418ef8a86d5301ac07f2 100644 |
--- a/test/cctest/test-alloc.cc |
+++ b/test/cctest/test-alloc.cc |
@@ -198,7 +198,8 @@ TEST(CodeRange) { |
const size_t code_range_size = 32*MB; |
CcTest::InitializeVM(); |
CodeRange code_range(reinterpret_cast<Isolate*>(CcTest::isolate())); |
- code_range.SetUp(code_range_size); |
+ code_range.SetUp(code_range_size + |
+ kReservedCodeRangePages * v8::base::OS::CommitPageSize()); |
size_t current_allocated = 0; |
size_t total_allocated = 0; |
List< ::Block> blocks(1000); |