Add missing increment of allocation counter.

This commit is contained in:
Jeffrey Hsu 2000-06-05 06:34:41 +00:00
parent 5a890e22bf
commit b10c4e187f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61272

View file

@ -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;
}