Date: Tue, 16 Sep 2014 17:21:06 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271681 - head/sys/vm Message-ID: <201409161721.s8GHL6hf082347@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Tue Sep 16 17:21:06 2014 New Revision: 271681 URL: http://svnweb.freebsd.org/changeset/base/271681 Log: Permit MAP_RENAME and MAP_NORESERVE for now. These flags should be removed, but at least Chromium and OpenJDK use MAP_NORESERVE. Modified: head/sys/vm/vm_mmap.c Modified: head/sys/vm/vm_mmap.c ============================================================================== --- head/sys/vm/vm_mmap.c Tue Sep 16 17:07:32 2014 (r271680) +++ head/sys/vm/vm_mmap.c Tue Sep 16 17:21:06 2014 (r271681) @@ -244,10 +244,9 @@ sys_mmap(td, uap) flags |= MAP_ANON; pos = 0; } - /* XXX: MAP_RENAME, MAP_NORESERVE */ - if ((flags & ~(MAP_SHARED | MAP_PRIVATE | MAP_FIXED | MAP_HASSEMAPHORE | - MAP_STACK | MAP_NOSYNC | MAP_ANON | MAP_EXCL | MAP_NOCORE | - MAP_PREFAULT_READ | + if ((flags & ~(MAP_SHARED | MAP_PRIVATE | MAP_FIXED | MAP_RENAME | + MAP_NORESERVE | MAP_HASSEMAPHORE | MAP_STACK | MAP_NOSYNC | + MAP_ANON | MAP_EXCL | MAP_NOCORE | MAP_PREFAULT_READ | #ifdef MAP_32BIT MAP_32BIT | #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409161721.s8GHL6hf082347>