From 347462bfeecb8db177df72dc5b3c6f2eb263c452 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 Aug 2018 00:20:25 +0000 Subject: compiler, runtime: remove hmap field from maptypes This is the gofrontend version of https://golang.org/cl/91796. This is part of that CL, just the compiler change and required runtime changes, in preparation for updating libgo to 1.11. Relevant part of original CL description: The hmap field in the maptype is only used by the runtime to check the sizes of the hmap structure created by the compiler and runtime agree. Comments are already present about the hmap structure definitions in the compiler and runtime needing to be in sync. Reviewed-on: https://go-review.googlesource.com/130976 From-SVN: r263941 --- libgo/go/reflect/type.go | 1 - 1 file changed, 1 deletion(-) (limited to 'libgo/go/reflect') diff --git a/libgo/go/reflect/type.go b/libgo/go/reflect/type.go index 07fe4d001c0..bbbef9107c2 100644 --- a/libgo/go/reflect/type.go +++ b/libgo/go/reflect/type.go @@ -351,7 +351,6 @@ type mapType struct { key *rtype // map key type elem *rtype // map element (value) type bucket *rtype // internal bucket structure - hmap *rtype // internal map header keysize uint8 // size of key slot indirectkey uint8 // store ptr to key instead of key itself valuesize uint8 // size of value slot -- cgit v1.2.3