1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:40:22 -07:00

runtime: fix counting of free objects

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6206056
This commit is contained in:
Jan Ziak 2012-05-15 11:48:58 -04:00 committed by Russ Cox
parent 01826280eb
commit 773685b4a3

View File

@ -154,6 +154,7 @@ runtime·free(void *v)
c->local_by_size[sizeclass].nfree++;
runtime·MCache_Free(c, v, sizeclass, size);
}
c->local_nfree++;
c->local_alloc -= size;
if(prof)
runtime·MProf_Free(v, size);