cvs commit: src/sys/vm vm_map.c vm_map.h

Alan Cox alc at FreeBSD.org
Sat Jul 24 00:40:36 PDT 2004


alc         2004-07-24 07:40:36 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_map.c vm_map.h 
  Log:
  Simplify vmspace initialization.  The bcopy() of fields from the old
  vmspace to the new vmspace in vmspace_exec() is mostly wasted effort.  With
  one exception, vm_swrss, the copied fields are immediately overwritten.
  Instead, initialize these fields to zero in vmspace_alloc(), eliminating a
  bcopy() from vmspace_exec() and a bzero() from vmspace_fork().
  
  Revision  Changes    Path
  1.345     +8 -11     src/sys/vm/vm_map.c
  1.112     +0 -3      src/sys/vm/vm_map.h


More information about the cvs-all mailing list