Commit 612d78d6 authored by Dmitry Vyukov's avatar Dmitry Vyukov

cmd/gc: restore amd64p32 hack for bucket size

This was accidentially removed in:
https://go-review.googlesource.com/#/c/3508/8/src/cmd/gc/reflect.c

Change-Id: I06dd5bb0cb3e2811bd4ef605d7a5225cfa033fe0
Reviewed-on: https://go-review.googlesource.com/4731Reviewed-by: default avatarKeith Randall <khr@golang.org>
parent 8090f868
No related merge requests found
......@@ -173,6 +173,11 @@ mapbucket(Type *t)
field[nelem(field)-1]->down = T;
dowidth(bucket);
// Pad to the native integer alignment.
// This is usually the same as widthptr; the exception (as usual) is amd64p32.
if(widthreg > widthptr)
bucket->width += widthreg - widthptr;
// See comment on hmap.overflow in ../../runtime/hashmap.go.
if(!haspointers(t->type) && !haspointers(t->down))
bucket->haspointers = 1; // no pointers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment