Date: Sun, 15 Jun 2014 07:53:00 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267497 - head/sys/vm Message-ID: <201406150753.s5F7r0Jl086609@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Sun Jun 15 07:52:59 2014 New Revision: 267497 URL: http://svnweb.freebsd.org/changeset/base/267497 Log: One of the intentions behind r267254 was that the global variable "sgrowsiz" would be read once and cached in a local variable so that the resource limit check and map entry insertion would be guaranteed to use the same value. However, the value being passed to vm_map_insert() is still from "sgrowsiz" and not the local variable. Correct this oversight. Reviewed by: kib Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Sun Jun 15 06:56:10 2014 (r267496) +++ head/sys/vm/vm_map.c Sun Jun 15 07:52:59 2014 (r267497) @@ -3388,7 +3388,7 @@ vm_map_stack(vm_map_t map, vm_offset_t a rv = KERN_NO_SPACE; goto out; } - rv = vm_map_stack_locked(map, addrbos, max_ssize, sgrowsiz, prot, + rv = vm_map_stack_locked(map, addrbos, max_ssize, growsize, prot, max, cow); out: vm_map_unlock(map);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406150753.s5F7r0Jl086609>