diff options
| author | Keith Randall <khr@golang.org> | 2017-05-31 09:02:40 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2017-08-15 01:52:29 +0000 |
| commit | 98d0634b7a50cf311de16606a9b56f6ae8ebf106 (patch) | |
| tree | 8220d5e1cb5d537c7595578437e56a8a192d2c39 /src/runtime/runtime2.go | |
| parent | 3d1699ea787f38be6088f9a098d6e08dafca9387 (diff) | |
| download | go-98d0634b7a50cf311de16606a9b56f6ae8ebf106.tar.xz | |
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>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 456b650f5c..ebcbe65820 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -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. |
