From: Russ Cox Date: Wed, 10 Feb 2010 19:31:00 +0000 (-0800) Subject: runtime: do not zero blocks on free (this time for sure!) X-Git-Tag: weekly.2010-02-17~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=991a968f44010667faf58ce96626ac5b03c12fa2;p=gostls13.git runtime: do not zero blocks on free (this time for sure!) R=iant CC=golang-dev https://golang.org/cl/207054 --- diff --git a/src/pkg/runtime/malloc.cgo b/src/pkg/runtime/malloc.cgo index 8c945baebd..53411da1b1 100644 --- a/src/pkg/runtime/malloc.cgo +++ b/src/pkg/runtime/malloc.cgo @@ -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);