Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 2006 00:26:27 +0000 (UTC)
From:      Tor Egge <tegge@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_exit.c src/sys/vm vm_extern.h vm_glue.c vm_map.c vm_map.h vm_meter.c
Message-ID:  <200606020026.k520QRoF001991@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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