summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat/memstat_malloc.c
diff options
context:
space:
mode:
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 57e7f5c..3aed1cf 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;
OpenPOWER on IntegriCloud