Index: src/base/platform/platform-freebsd.cc |
diff --git a/src/base/platform/platform-freebsd.cc b/src/base/platform/platform-freebsd.cc |
index 58316f8bc1a9abf0ce86549cc0976fce1120ea2d..68ed70af93fa04ac226c9188bc4599a1e8671b1d 100644 |
--- a/src/base/platform/platform-freebsd.cc |
+++ b/src/base/platform/platform-freebsd.cc |
@@ -188,7 +188,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
void* reservation = mmap(OS::GetRandomMmapAddr(), |
request_size, |
PROT_NONE, |
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, |
+ MAP_PRIVATE | MAP_ANON, |
kMmapFd, |
kMmapFdOffset); |
if (reservation == MAP_FAILED) return; |
@@ -260,7 +260,7 @@ void* VirtualMemory::ReserveRegion(size_t size) { |
void* result = mmap(OS::GetRandomMmapAddr(), |
size, |
PROT_NONE, |
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, |
+ MAP_PRIVATE | MAP_ANON, |
kMmapFd, |
kMmapFdOffset); |
@@ -288,7 +288,7 @@ bool VirtualMemory::UncommitRegion(void* base, size_t size) { |
return mmap(base, |
size, |
PROT_NONE, |
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED, |
+ MAP_PRIVATE | MAP_ANON | MAP_FIXED, |
kMmapFd, |
kMmapFdOffset) != MAP_FAILED; |
} |