Index: src/pkg/reflect/type.go |
=================================================================== |
--- a/src/pkg/reflect/type.go |
+++ b/src/pkg/reflect/type.go |
@@ -16,6 +16,7 @@ |
package reflect |
import ( |
+ "runtime" |
"strconv" |
"sync" |
"unsafe" |
@@ -1572,6 +1573,10 @@ |
gc = append(gc, _GC_PTR, offset, 0 /*self pointer set below*/) // overflow |
offset += ptrsize |
+ if runtime.GOARCH == "amd64p32" { |
+ offset += 4 |
+ } |
+ |
// keys |
if ktyp.kind&kindNoPointers == 0 { |
gc = append(gc, _GC_ARRAY_START, offset, _BUCKETSIZE, ktyp.size) |