Commit 991a968f authored by Russ Cox's avatar Russ Cox

runtime: do not zero blocks on free (this time for sure!)

R=iant
CC=golang-dev
https://golang.org/cl/207054
parent 3b1a7186
......@@ -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);
......
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