summaryrefslogtreecommitdiff
path: root/lib/libmemstat/memstat_malloc.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-07-23 21:17:15 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-07-23 21:17:15 +0000
commitddefbc898abc7b7d6a0338e6291075037090c64b (patch)
tree0102be81724a1f54a8c13019736a2b01cc0cdbfb /lib/libmemstat/memstat_malloc.c
parent8a1ae47f87adb463c14d607f3270315f7631a5c9 (diff)
Notes
Diffstat (limited to 'lib/libmemstat/memstat_malloc.c')
-rw-r--r--lib/libmemstat/memstat_malloc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libmemstat/memstat_malloc.c b/lib/libmemstat/memstat_malloc.c
index 57e7f5c977af..3aed1cfb1eb6 100644
--- a/lib/libmemstat/memstat_malloc.c
+++ b/lib/libmemstat/memstat_malloc.c
@@ -174,15 +174,10 @@ retry:
if (hint_dontsearch == 0) {
mtp = memstat_mtl_find(list, ALLOCATOR_MALLOC,
mthp->mth_name);
- /*
- * Reset the statistics on a reused node.
- */
- if (mtp != NULL)
- memstat_mt_reset_stats(mtp);
} else
mtp = NULL;
if (mtp == NULL)
- mtp = memstat_mt_allocate(list, ALLOCATOR_MALLOC,
+ mtp = _memstat_mt_allocate(list, ALLOCATOR_MALLOC,
mthp->mth_name);
if (mtp == NULL) {
memstat_mtl_free(list);
@@ -196,7 +191,7 @@ retry:
/*
* Reset the statistics on a current node.
*/
- memstat_mt_reset_stats(mtp);
+ _memstat_mt_reset_stats(mtp);
for (j = 0; j < maxcpus; j++) {
mtsp = (struct malloc_type_stats *)p;