Revision: 9313
Author: erik.co...@gmail.com
Date: Sat Sep 17 03:17:42 2011
Log: NewGC: Fix build on Mac.
Review URL: http://codereview.chromium.org/7931008
http://code.google.com/p/v8/source/detail?r=9313
Modified:
/branches/experimental/gc/src/platform-macos.cc
=======================================
--- /branches/experimental/gc/src/platform-macos.cc Thu Sep 15 04:11:20 2011
+++ /branches/experimental/gc/src/platform-macos.cc Sat Sep 17 03:17:42 2011
@@ -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