Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2015 15:22:48 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284956 - head/sys/kern
Message-ID:  <201506301522.t5UFMmuP051456@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jun 30 15:22:47 2015
New Revision: 284956
URL: https://svnweb.freebsd.org/changeset/base/284956

Log:
  Do not calculate the stack's bottom address twice.
  
  Submitted by:	Olivц╘r Pintц╘r
  Review:	https://reviews.freebsd.org/D2953
  MFC after:	1 week

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c	Tue Jun 30 15:21:18 2015	(r284955)
+++ head/sys/kern/kern_exec.c	Tue Jun 30 15:22:47 2015	(r284956)
@@ -1096,7 +1096,7 @@ exec_new_vmspace(imgp, sv)
 	 * are still used to enforce the stack rlimit on the process stack.
 	 */
 	vmspace->vm_ssize = sgrowsiz >> PAGE_SHIFT;
-	vmspace->vm_maxsaddr = (char *)sv->sv_usrstack - ssiz;
+	vmspace->vm_maxsaddr = (char *)stack_addr;
 
 	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506301522.t5UFMmuP051456>