diff options
author | Russ Cox <rsc@golang.org> | 2010-02-10 11:31:00 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-10 11:31:00 -0800 |
commit | 8273876e3a2fb6b57e96f15518267117fc851863 (patch) | |
tree | b8aaf133cbfb32d37158aed51bef51e3c0b88bee | |
parent | 7286058ee4b37e35a5f9702ddfec7ebb0d2599ff (diff) | |
download | golang-8273876e3a2fb6b57e96f15518267117fc851863.tar.gz |
runtime: do not zero blocks on free (this time for sure!)
R=iant
CC=golang-dev
http://codereview.appspot.com/207054
-rw-r--r-- | src/pkg/runtime/malloc.cgo | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.cgo b/src/pkg/runtime/malloc.cgo index 8c945baeb..53411da1b 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); |