Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index e79063b8f26dc3698b6d3b22f5a1a6869449e60b..a84b867f8de0ef387ad15d7bbdc02a95decaed40 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -222,8 +222,8 @@ TEST(Regress3540) { |
} |
Address address; |
size_t size; |
- address = code_range->AllocateRawMemory(code_range_size - MB, |
- code_range_size - MB, &size); |
+ address = code_range->AllocateRawMemory(code_range_size - 2 * MB, |
+ code_range_size - 2 * MB, &size); |
CHECK(address != NULL); |
Address null_address; |
size_t null_size; |