From b10c4e187f9998311cbd0c7f3a7bd70443d644f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Mon, 5 Jun 2000 06:34:41 +0000 Subject: [PATCH] Add missing increment of allocation counter. --- sys/vm/vm_zone.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/vm_zone.c b/sys/vm/vm_zone.c index b1007dcd340..d7bbfaa3cba 100644 --- a/sys/vm/vm_zone.c +++ b/sys/vm/vm_zone.c @@ -371,6 +371,7 @@ _zget(vm_zone_t z) (char *) item += z->zsize; } z->zfreecnt += nitems; + z->znalloc++; } else if (z->zfreecnt > 0) { item = z->zitems; z->zitems = ((void **) item)[0]; @@ -380,6 +381,7 @@ _zget(vm_zone_t z) ((void **) item)[1] = 0; #endif z->zfreecnt--; + z->znalloc++; } else { item = NULL; }