From e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e Mon Sep 17 00:00:00 2001 From: jhb Date: Sat, 18 Oct 2014 12:20:42 +0000 Subject: 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) --- ...ch-v8__src__base__platform__platform-freebsd.cc | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'www/chromium') 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; + } -- cgit