From cdd0ddaf45f0de162d4e52e8418bd0638a3dc800 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 13 Dec 2023 13:45:05 -0800 Subject: [PATCH] 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 --- src/internal/abi/iface.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/internal/abi/iface.go b/src/internal/abi/iface.go index 8fefcaefa00..fb25a2d1f3c 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. }