| Index: test/cctest/heap/test-spaces.cc
|
| diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc
|
| index d863d3c9d5d60e9b5826eb91e3cbf7212a04f3ac..40c4d0648d7eff843282b713fd29f27c726a8058 100644
|
| --- a/test/cctest/heap/test-spaces.cc
|
| +++ b/test/cctest/heap/test-spaces.cc
|
| @@ -32,7 +32,6 @@
|
| #include "src/v8.h"
|
| #include "test/cctest/cctest.h"
|
| #include "test/cctest/heap/heap-tester.h"
|
| -#include "test/cctest/heap/utils-inl.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -208,14 +207,15 @@ TEST(Regress3540) {
|
| 0));
|
| TestMemoryAllocatorScope test_allocator_scope(isolate, memory_allocator);
|
| CodeRange* code_range = new CodeRange(isolate);
|
| - const size_t code_range_size = 4 * Page::kPageSize;
|
| + size_t code_range_size =
|
| + kMinimumCodeRangeSize > 0 ? kMinimumCodeRangeSize : 3 * MB;
|
| if (!code_range->SetUp(code_range_size)) {
|
| return;
|
| }
|
|
|
| Address address;
|
| size_t size;
|
| - size_t request_size = code_range_size - 2 * Page::kPageSize;
|
| + size_t request_size = code_range_size - Page::kPageSize;
|
| address = code_range->AllocateRawMemory(
|
| request_size, request_size - (2 * MemoryAllocator::CodePageGuardSize()),
|
| &size);
|
|
|