aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-05-24 14:31:10 -0700
committerRuss Cox <rsc@golang.org>2010-05-24 14:31:10 -0700
commit21518ea2af400995475ea627b2c56421ca91777b (patch)
tree108f3532d5b5a4162e9b8cdf1371b6d25e77686a
parent84edc2e9807d6b331e2675279c7f17d1abc9b3a7 (diff)
downloadgo-21518ea2af400995475ea627b2c56421ca91777b.tar.gz
go-21518ea2af400995475ea627b2c56421ca91777b.zip
runtime: free old hashmap pieces during resizing
R=r CC=golang-dev https://golang.org/cl/1254044
-rw-r--r--src/pkg/runtime/hashmap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pkg/runtime/hashmap.h b/src/pkg/runtime/hashmap.h
index 06b98349b8..906de47643 100644
--- a/src/pkg/runtime/hashmap.h
+++ b/src/pkg/runtime/hashmap.h
@@ -64,7 +64,6 @@
*/
#define malloc mal
-#define free(a) USED(a)
#define offsetof(s,m) (uint32)(&(((s*)0)->m))
#define memset(a,b,c) ·memclr((byte*)(a), (uint32)(c))
#define memcpy(a,b,c) mcpy((byte*)(a),(byte*)(b),(uint32)(c))