mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove bad field from itab
Just use fun[0]==0 to indicate a bad itab. Change-Id: I28ecb2d2d857090c1ecc40b1d1866ac24a844848 Reviewed-on: https://go-review.googlesource.com/44473 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
3d1699ea78
commit
98d0634b7a
4 changed files with 7 additions and 11 deletions
|
|
@ -628,9 +628,8 @@ type itab struct {
|
|||
_type *_type
|
||||
_ uintptr
|
||||
hash uint32 // copy of _type.hash. Used for type switches.
|
||||
bad bool // type does not implement interface
|
||||
_ [3]byte
|
||||
fun [1]uintptr // variable sized
|
||||
_ [4]byte
|
||||
fun [1]uintptr // variable sized. fun[0]==0 means _type does not implement inter.
|
||||
}
|
||||
|
||||
// Lock-free stack node.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue