Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 22:42:55 -0700 (PDT)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm uma_core.c
Message-ID:  <200307300542.h6U5gtw1002714@repoman.freebsd.org>

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



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