mirror of
https://github.com/golang/go
synced 2024-11-22 01:34:41 -07:00
runtime: do not zero blocks on free (this time for sure!)
R=iant CC=golang-dev https://golang.org/cl/207054
This commit is contained in:
parent
3b1a71862e
commit
991a968f44
@ -130,7 +130,6 @@ free(void *v)
|
||||
size = class_to_size[sizeclass];
|
||||
if(size > sizeof(uintptr))
|
||||
((uintptr*)v)[1] = 1; // mark as "needs to be zeroed"
|
||||
runtime_memclr(v, size);
|
||||
mstats.alloc -= size;
|
||||
mstats.by_size[sizeclass].nfree++;
|
||||
MCache_Free(c, v, sizeclass, size);
|
||||
|
Loading…
Reference in New Issue
Block a user