]> Cypherpunks repositories - gostls13.git/commitdiff
internal/abi: get rid of itab blank field
authorKeith Randall <khr@golang.org>
Wed, 13 Dec 2023 21:45:05 +0000 (13:45 -0800)
committerKeith Randall <khr@golang.org>
Fri, 16 Feb 2024 20:25:09 +0000 (20:25 +0000)
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 <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/internal/abi/iface.go

index 8fefcaefa00788eca0cc1ea3a4cc669371af29d2..fb25a2d1f3c9456733c95c2b28cb4e7f37071092 100644 (file)
@@ -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.
 }