From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Tue, 15 May 2012 15:48:58 +0000 (-0400) Subject: runtime: fix counting of free objects X-Git-Tag: go1.1rc2~3207 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=773685b4a3e4f8911421825f879f06a3de92c15e;p=gostls13.git runtime: fix counting of free objects R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6206056 --- diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index 4bea5e220c..c2727bf2b4 100644 --- a/src/pkg/runtime/malloc.goc +++ b/src/pkg/runtime/malloc.goc @@ -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);