2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-04 08:35:31 +00:00

isc_mem_stats() should print memory statistics even when there are no

allocated blocks at the time it's called.
This commit is contained in:
Brian Wellington
2001-02-13 01:07:54 +00:00
parent 55f3daa4ea
commit 9f708f9014

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mem.c,v 1.84 2001/02/09 19:08:11 gson Exp $ */
/* $Id: mem.c,v 1.85 2001/02/13 01:07:54 bwelling Exp $ */
#include <config.h>
@@ -1006,7 +1006,6 @@ isc_mem_stats(isc_mem_t *ctx, FILE *out) {
REQUIRE(VALID_CONTEXT(ctx));
LOCK(&ctx->lock);
if (ctx->inuse > 0) {
for (i = 0; i <= ctx->max_size; i++) {
s = &ctx->stats[i];
@@ -1022,7 +1021,6 @@ isc_mem_stats(isc_mem_t *ctx, FILE *out) {
#endif /* ISC_MEM_USE_INTERNAL_MALLOC */
fputc('\n', out);
}
}
/*
* Note that since a pool can be locked now, these stats might be