freebsd-dev/lib/libmemstat
Robert Watson 22247a2a38 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
2005-08-01 13:18:21 +00:00
..
libmemstat.3 Having decided not to provide a libmemstat(3) error number to text 2005-07-24 01:41:47 +00:00
Makefile Having decided not to provide a libmemstat(3) error number to text 2005-07-24 01:41:47 +00:00
memstat_all.c
memstat_internal.h Correct two libmemstat(3) bugs: 2005-08-01 13:18:21 +00:00
memstat_malloc.c Correct two libmemstat(3) bugs: 2005-08-01 13:18:21 +00:00
memstat_uma.c Correct two libmemstat(3) bugs: 2005-08-01 13:18:21 +00:00
memstat.c Correct two libmemstat(3) bugs: 2005-08-01 13:18:21 +00:00
memstat.h Having decided not to provide a libmemstat(3) error number to text 2005-07-24 01:41:47 +00:00