From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Wed, 13 Jun 2012 20:23:53 +0000 (-0400) Subject: [release-branch.go1] runtime: fix counting of free objects X-Git-Tag: go1.0.2~86 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fd2dfebd88b91b4b09aa5ed4349dc05465add667;p=gostls13.git [release-branch.go1] runtime: fix counting of free objects ««« backport 393bec50494e 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 fbdd6bb021..9ae3a9d619 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);