mirror of
https://github.com/golang/go
synced 2024-11-25 11:07:59 -07: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
@ -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…
Reference in New Issue
Block a user