aboutsummaryrefslogtreecommitdiff
path: root/lang/v8-devel
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2014-10-18 12:20:42 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2014-10-18 12:20:42 +0000
commit1ebd0e3345fb6f66522e8c837174a3544e080aad (patch)
tree75b44b9298bfa34f3123fa4b2064042302608491 /lang/v8-devel
parentb133042d6c8165729774ffa4c9ea411beb0fdc29 (diff)
downloadports-1ebd0e3345fb6f66522e8c837174a3544e080aad.tar.gz
ports-1ebd0e3345fb6f66522e8c837174a3544e080aad.zip
Notes
Diffstat (limited to 'lang/v8-devel')
-rw-r--r--lang/v8-devel/files/patch-src_platform-freebsd.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/v8-devel/files/patch-src_platform-freebsd.cc b/lang/v8-devel/files/patch-src_platform-freebsd.cc
new file mode 100644
index 000000000000..c18f2f404991
--- /dev/null
+++ b/lang/v8-devel/files/patch-src_platform-freebsd.cc
@@ -0,0 +1,29 @@
+--- src/platform-freebsd.cc.orig 2014-06-03 04:52:11.000000000 -0400
++++ src/platform-freebsd.cc 2014-10-08 11:16:08.000000000 -0400
+@@ -189,7 +189,7 @@ VirtualMemory::VirtualMemory(size_t size
+ 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;
+@@ -261,7 +261,7 @@ void* VirtualMemory::ReserveRegion(size_
+ void* result = mmap(OS::GetRandomMmapAddr(),
+ size,
+ PROT_NONE,
+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
++ MAP_PRIVATE | MAP_ANON,
+ kMmapFd,
+ kMmapFdOffset);
+
+@@ -289,7 +289,7 @@ bool VirtualMemory::UncommitRegion(void*
+ return mmap(base,
+ size,
+ PROT_NONE,
+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED,
++ MAP_PRIVATE | MAP_ANON | MAP_FIXED,
+ kMmapFd,
+ kMmapFdOffset) != MAP_FAILED;
+ }