cvs commit: src/sys/vm uma_core.c

Jeff Roberson jeff at FreeBSD.org
Tue Jul 29 22:42:56 PDT 2003


jeff        2003/07/29 22:42:55 PDT

  FreeBSD src repository

  Modified files:
    sys/vm               uma_core.c 
  Log:
   - Check to see if we need a slab prior to allocating one.  Failure to do
     so not only wastes memory but it can also cause a leak in zones that
     will be destroyed later.  The problem is that the slab allocation code
     places newly created slabs on the partially allocated list because it
     assumes that the caller will actually allocate some memory from it.
     Failure to do so places an otherwise free slab on the partial slab list
     where we wont find it later in zone_drain().
  
  Continuously prodded to fix by: phk (Thanks)
  
  Revision  Changes    Path
  1.65      +2 -2      src/sys/vm/uma_core.c


More information about the cvs-src mailing list