Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2005 13:18:21 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libmemstat memstat.c memstat_internal.h memstat_malloc.c memstat_uma.c
Message-ID:  <200508011318.j71DIL6T088931@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-08-01 13:18:21 UTC

  FreeBSD src repository

  Modified files:
    lib/libmemstat       memstat.c memstat_internal.h 
                         memstat_malloc.c memstat_uma.c 
  Log:
  Correct two libmemstat(3) bugs:
  
  - Move memory_type_list flushing logic from memstat_mtl_free() to
    _memstat_mtl_empty(), a libmemstat-internal function that can
    be called from other parts of the library.  Invoke
    _memstat_mtl_empty() from memstat_mtl_free(), which also frees
    the containing list structure.
  
    Invoke _memstat_mtl_empty() instead of memstat_mtl_free() in
    various error cases in memstat_malloc.c and memstat_uma.c, which
    previously resulted in the list being freed prematurely.
  
  - Reverse the order of updating the mt_kegfree and mt_free fields
    of the memory_type in memstat_uma.c, otherwise keg free items
    won't be counted properly for non-secondary zones.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.6       +8 -1      src/lib/libmemstat/memstat.c
  1.6       +1 -0      src/lib/libmemstat/memstat_internal.h
  1.5       +1 -1      src/lib/libmemstat/memstat_malloc.c
  1.9       +2 -2      src/lib/libmemstat/memstat_uma.c



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