]> Cypherpunks repositories - gostls13.git/commitdiff
temp fix for map not multiple of 8
authorKen Thompson <ken@golang.org>
Thu, 13 Nov 2008 21:20:18 +0000 (13:20 -0800)
committerKen Thompson <ken@golang.org>
Thu, 13 Nov 2008 21:20:18 +0000 (13:20 -0800)
R=r
OCL=19166
CL=19166

src/runtime/hashmap.c

index 1a8e68c39c6a096ab800b729795a1c5bfc941939..0bb276a54e689c252c23f3b2058c105c1300864f 100644 (file)
@@ -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;