aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/hashmap.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-11-13 13:20:18 -0800
committerKen Thompson <ken@golang.org>2008-11-13 13:20:18 -0800
commit9795c9e72735efdf717df38f9ffe1ca1b0e9c0cb (patch)
treeea81807f7c7258d117833201afbe761909ae031d /src/runtime/hashmap.c
parentbc0b4f0d2a610059afb95ef0360704714815187d (diff)
downloadgo-9795c9e72735efdf717df38f9ffe1ca1b0e9c0cb.tar.xz
temp fix for map not multiple of 8
R=r OCL=19166 CL=19166
Diffstat (limited to 'src/runtime/hashmap.c')
-rw-r--r--src/runtime/hashmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/hashmap.c b/src/runtime/hashmap.c
index 1a8e68c39c..0bb276a54e 100644
--- a/src/runtime/hashmap.c
+++ b/src/runtime/hashmap.c
@@ -125,6 +125,7 @@ hash_init (struct hash *h,
if(datasize < sizeof (void *))
datasize = sizeof (void *);
+ datasize = rnd(datasize, 8);
init_sizes (hint, &init_power, &max_power);
h->datasize = datasize;
h->max_power = max_power;