From: Russ Cox Date: Mon, 24 May 2010 21:31:10 +0000 (-0700) Subject: runtime: free old hashmap pieces during resizing X-Git-Tag: weekly.2010-05-27~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=21518ea2af400995475ea627b2c56421ca91777b;p=gostls13.git runtime: free old hashmap pieces during resizing R=r CC=golang-dev https://golang.org/cl/1254044 --- 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))