tegge 2006-06-02 00:26:27 UTC FreeBSD src repository
Modified files: (Branch: RELENG_6) sys/kern kern_exit.c sys/vm vm_extern.h vm_glue.c vm_map.c vm_map.h vm_meter.c Log: MFC: Close race between vmspace_exitfree() and exit1() and races between vmspace_exitfree() and vmspace_free() which could result in the same vmspace being freed twice. Factor out part of exit1() into new function vmspace_exit(). Attach to vmspace0 to allow old vmspace to be freed earlier. Add new function, vmspace_acquire_ref(), for obtaining a vmspace reference for a vmspace belonging to another process. Avoid changing vmspace refcount from 0 to 1 since that could also lead to the same vmspace being freed twice. Change vmtotal() and swapout_procs() to use vmspace_acquire_ref(). Revision Changes Path 1.263.2.9 +2 -30 src/sys/kern/kern_exit.c 1.76.2.2 +2 -0 src/sys/vm/vm_extern.h 1.213.2.2 +3 -6 src/sys/vm/vm_glue.c 1.366.2.3 +93 -16 src/sys/vm/vm_map.c 1.117.2.1 +0 -1 src/sys/vm/vm_map.h 1.85.2.1 +6 -1 src/sys/vm/vm_meter.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"