aboutsummaryrefslogtreecommitdiffstats
path: root/www/chromium
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-10-18 20:20:42 +0800
committerjhb <jhb@FreeBSD.org>2014-10-18 20:20:42 +0800
commite8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e (patch)
tree75b44b9298bfa34f3123fa4b2064042302608491 /www/chromium
parent7a11983187598adbbcc47f1e58f14eb473db899b (diff)
downloadfreebsd-ports-gnome-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.tar.gz
freebsd-ports-gnome-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.tar.zst
freebsd-ports-gnome-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.zip
The MAP_NORESERVE flag to mmap() has never been implemented in FreeBSD and
is being removed. No portrev bump needed since the kernel will continue to accept this flag for old binaries even after support for it in new binaries is removed. PR: 193961 Approved by: portmgr (antoine)
Diffstat (limited to 'www/chromium')
-rw-r--r--www/chromium/files/patch-v8__src__base__platform__platform-freebsd.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/www/chromium/files/patch-v8__src__base__platform__platform-freebsd.cc b/www/chromium/files/patch-v8__src__base__platform__platform-freebsd.cc
index d9cfe09fd719..2256ed45e94e 100644
--- a/www/chromium/files/patch-v8__src__base__platform__platform-freebsd.cc
+++ b/www/chromium/files/patch-v8__src__base__platform__platform-freebsd.cc
@@ -32,3 +32,30 @@
} while (buffer[bytes_read] != '\n');
buffer[bytes_read] = 0;
// Ignore mappings that are not executable.
+@@ -187,7 +187,7 @@
+ 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;
+@@ -259,7 +259,7 @@
+ void* result = mmap(OS::GetRandomMmapAddr(),
+ size,
+ PROT_NONE,
+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
++ MAP_PRIVATE | MAP_ANON,
+ kMmapFd,
+ kMmapFdOffset);
+
+@@ -287,7 +287,7 @@
+ return mmap(base,
+ size,
+ PROT_NONE,
+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED,
++ MAP_PRIVATE | MAP_ANON | MAP_FIXED,
+ kMmapFd,
+ kMmapFdOffset) != MAP_FAILED;
+ }