Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.hut.fi>
List: source-changes
Date: 02/10/2001 07:05:29
Module Name:	syssrc
Committed By:	thorpej
Date:		Sat Feb 10 05:05:28 UTC 2001

Modified Files:
	syssrc/sys/kern: kern_exit.c
	syssrc/sys/uvm: uvm_map.c

Log Message:
Don't uvm_deallocate() the address space in exit1().  The address
space is already torn down in uvmspace_free() when the vmspace
refrence count reaches 0.  Move the shmexit() call into uvmspace_free().

Note that there is a beneficial side-effect of deferring the unmap
to uvmspace_free() -- on systems where TLB invalidations are
particularly expensive, the unmapping of the address space won't
have to cause TLB invalidations; uvmspace_free() is going to be
run in a context other than the exiting process's, so the "pmap is
active" test will evaluate to FALSE in the pmap module.


To generate a diff of this commit:
cvs rdiff -r1.87 -r1.88 syssrc/sys/kern/kern_exit.c
cvs rdiff -r1.91 -r1.92 syssrc/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.