From: Keith Randall Date: Wed, 13 Dec 2023 21:45:05 +0000 (-0800) Subject: internal/abi: get rid of itab blank field X-Git-Tag: go1.23rc1~1211 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cdd0ddaf45f0de162d4e52e8418bd0638a3dc800;p=gostls13.git internal/abi: get rid of itab blank field We don't need it anymore, as we're accessing all the field offsets symbolically. This won't affect 64-bit, but it makes itabs on 32-bit 4 bytes smaller. Change-Id: I7fb937813111476fd5ab03005b248ea7bb962cf6 Reviewed-on: https://go-review.googlesource.com/c/go/+/549517 Reviewed-by: David Chase Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI --- diff --git a/src/internal/abi/iface.go b/src/internal/abi/iface.go index 8fefcaefa0..fb25a2d1f3 100644 --- a/src/internal/abi/iface.go +++ b/src/internal/abi/iface.go @@ -12,7 +12,6 @@ package abi type ITab struct { Inter *InterfaceType Type *Type - Hash uint32 // copy of Type.Hash. Used for type switches. - _ [4]byte + Hash uint32 // copy of Type.Hash. Used for type switches. Fun [1]uintptr // variable sized. fun[0]==0 means Type does not implement Inter. }