Revision: 24363
Author: [email protected]
Date: Wed Oct 1 11:54:47 2014 UTC
Log: Fix test-spaces on win64
[email protected]
LOG=n
BUG=none
Review URL: https://codereview.chromium.org/615423002
https://code.google.com/p/v8/source/detail?r=24363
Modified:
/branches/bleeding_edge/test/cctest/test-spaces.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-spaces.cc Fri Sep 19 08:01:35
2014 UTC
+++ /branches/bleeding_edge/test/cctest/test-spaces.cc Wed Oct 1 11:54:47
2014 UTC
@@ -27,6 +27,7 @@
#include <stdlib.h>
+#include "src/base/platform/platform.h"
#include "src/snapshot.h"
#include "src/v8.h"
#include "test/cctest/cctest.h"
@@ -212,7 +213,12 @@
TestMemoryAllocatorScope test_allocator_scope(isolate, memory_allocator);
CodeRange* code_range = new CodeRange(isolate);
const size_t code_range_size = 4 * MB;
- if (!code_range->SetUp(code_range_size)) return;
+ if (!code_range->SetUp(
+ code_range_size +
+ RoundUp(v8::base::OS::CommitPageSize() * kReservedCodeRangePages,
+ MemoryChunk::kAlignment))) {
+ return;
+ }
Address address;
size_t size;
address = code_range->AllocateRawMemory(code_range_size - MB,
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.