mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: fix counting of free objects
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6206056
This commit is contained in:
parent
01826280eb
commit
773685b4a3
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue