1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:24:42 -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:
Russ Cox 2010-02-10 11:31:00 -08:00
parent 3b1a71862e
commit 991a968f44

View File

@ -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);