summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat/memstat_malloc.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-07-23 21:17:15 +0000
committerrwatson <rwatson@FreeBSD.org>2005-07-23 21:17:15 +0000
commita465907b05115a58a5c1178300875d8dc1119cd1 (patch)
tree0102be81724a1f54a8c13019736a2b01cc0cdbfb /lib/libmemstat/memstat_malloc.c
parent4eb9d677d45bfe80d30ff8ae621a5246cc58790a (diff)
downloadFreeBSD-src-a465907b05115a58a5c1178300875d8dc1119cd1.zip
FreeBSD-src-a465907b05115a58a5c1178300875d8dc1119cd1.tar.gz
Prefix two non-static libmemstat(3) internal functions with '_' symbols, to
try and discourage use outside the library. Remove duplicate declaration of memstat_mtl_free() from memstat_internal.h, as it's not internal, and the memstat.h definition suffices.
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