Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 9ad44233d9ae23b6b5fa81779844b89d8b0b6c9e..e79063b8f26dc3698b6d3b22f5a1a6869449e60b 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -216,7 +216,8 @@ TEST(Regress3540) { |
if (!code_range->SetUp( |
code_range_size + |
RoundUp(v8::base::OS::CommitPageSize() * kReservedCodeRangePages, |
- MemoryChunk::kAlignment))) { |
+ MemoryChunk::kAlignment) + |
+ v8::internal::MemoryAllocator::CodePageAreaSize())) { |
return; |
} |
Address address; |