cvs commit: src/sys/vm memguard.c

Bosko Milekic bmilekic at FreeBSD.org
Thu Feb 10 22:36:05 GMT 2005


bmilekic    2005-02-10 22:36:05 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               memguard.c 
  Log:
  Implement support for buffers larger than PAGE_SIZE in MemGuard.  Adds
  a little bit of complexity but performance requirements lacking (this is
  a debugging allocator after all), it's really not too bad (still
  only 317 lines).
  
  Also add an additional check to help catch really weird 3-threads-involved
  races: make memguard_free() write to the first page handed back, always,
  before it does anything else.
  
  Note that there is still a problem in VM+PMAP (specifically with
  vm_map_protect) w.r.t. MemGuard uses it, but this will be fixed shortly
  and this change stands on its own.
  
  Revision  Changes    Path
  1.3       +129 -32   src/sys/vm/memguard.c


More information about the cvs-src mailing list