aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-02-10 11:31:00 -0800
committerRuss Cox <rsc@golang.org>2010-02-10 11:31:00 -0800
commit991a968f44010667faf58ce96626ac5b03c12fa2 (patch)
tree714fe260c921be158231a7adc91f37bfae32e81f
parent3b1a71862e0db013ec1b2c1cb55212e9611e8885 (diff)
downloadgo-991a968f44010667faf58ce96626ac5b03c12fa2.tar.gz
go-991a968f44010667faf58ce96626ac5b03c12fa2.zip
runtime: do not zero blocks on free (this time for sure!)
R=iant CC=golang-dev https://golang.org/cl/207054
-rw-r--r--src/pkg/runtime/malloc.cgo1
1 files changed, 0 insertions, 1 deletions
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);