| Index: test/cctest/test-spaces.cc
|
| diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc
|
| index 292b27fd00cad41a8057f10bf98c8e31d7b0ed03..bbf9835a85a731ee07b8a380bb8891a0dfe60fc3 100644
|
| --- a/test/cctest/test-spaces.cc
|
| +++ b/test/cctest/test-spaces.cc
|
| @@ -224,8 +224,10 @@ TEST(Regress3540) {
|
| }
|
| Address address;
|
| size_t size;
|
| + size_t request_size = code_range_size - 2 * pageSize;
|
| address = code_range->AllocateRawMemory(
|
| - code_range_size - 2 * pageSize, code_range_size - 2 * pageSize, &size);
|
| + request_size, request_size - (2 * MemoryAllocator::CodePageGuardSize()),
|
| + &size);
|
| CHECK(address != NULL);
|
| Address null_address;
|
| size_t null_size;
|
|
|