From 991a968f44010667faf58ce96626ac5b03c12fa2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 10 Feb 2010 11:31:00 -0800 Subject: [PATCH] runtime: do not zero blocks on free (this time for sure!) R=iant CC=golang-dev https://golang.org/cl/207054 --- src/pkg/runtime/malloc.cgo | 1 - 1 file changed, 1 deletion(-) 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); -- 2.48.1