aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.goc
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2012-05-15 11:48:58 -0400
committerRuss Cox <rsc@golang.org>2012-05-15 11:48:58 -0400
commit773685b4a3e4f8911421825f879f06a3de92c15e (patch)
treefe1ae2261a2d4acfef1ada31d554eb96f98f56c8 /src/pkg/runtime/malloc.goc
parent01826280eb3dec5dfa06fae0474caf1ba3942ec7 (diff)
downloadgo-773685b4a3e4f8911421825f879f06a3de92c15e.tar.xz
runtime: fix counting of free objects
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6206056
Diffstat (limited to 'src/pkg/runtime/malloc.goc')
-rw-r--r--src/pkg/runtime/malloc.goc1
1 files changed, 1 insertions, 0 deletions
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);