Reviewers: fschneider,
Description:
NewGC: Fix build on Mac.
Please review this at http://codereview.chromium.org/7931008/
SVN Base: http://v8.googlecode.com/svn/branches/experimental/gc/
Affected files:
M src/platform-macos.cc
Index: src/platform-macos.cc
===================================================================
--- src/platform-macos.cc (revision 9312)
+++ src/platform-macos.cc (working copy)
@@ -334,7 +334,7 @@
}
-VirtualMemory::VirtualMemory() : address_(NULL), size_(size) { }
+VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { }
VirtualMemory::VirtualMemory(size_t size)
@@ -346,10 +346,10 @@
ASSERT(IsAligned(alignment,
static_cast<intptr_t>(OS::AllocateAlignment())));
size_t request_size = RoundUp(size + alignment,
static_cast<intptr_t>(OS::AllocateAlignment()));
- void* reservation = mmap(GetRandomMmapAddr(),
+ void* reservation = mmap(NULL,
request_size,
PROT_NONE,
- MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE,
+ MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
kMmapFd,
kMmapFdOffset);
if (reservation == MAP_FAILED) return;
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev