Commit fd2dfebd authored by Jan Ziak's avatar Jan Ziak Committed by Russ Cox

[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

»»»
parent bd0227bb
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment