aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/iface.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2017-05-31 09:02:40 -0700
committerKeith Randall <khr@golang.org>2017-08-15 01:52:29 +0000
commit98d0634b7a50cf311de16606a9b56f6ae8ebf106 (patch)
tree8220d5e1cb5d537c7595578437e56a8a192d2c39 /src/runtime/iface.go
parent3d1699ea787f38be6088f9a098d6e08dafca9387 (diff)
downloadgo-98d0634b7a50cf311de16606a9b56f6ae8ebf106.tar.gz
go-98d0634b7a50cf311de16606a9b56f6ae8ebf106.zip
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/iface.go')
-rw-r--r--src/runtime/iface.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/iface.go b/src/runtime/iface.go
index 3aa2fe6fde..bac0b37b3a 100644
--- a/src/runtime/iface.go
+++ b/src/runtime/iface.go
@@ -70,7 +70,7 @@ func getitab(inter *interfacetype, typ *_type, canfail bool) *itab {
itabAdd(m)
unlock(&itabLock)
finish:
- if !m.bad {
+ if m.fun[0] != 0 {
return m
}
if canfail {
@@ -219,7 +219,7 @@ imethods:
}
}
// didn't find method
- m.bad = true
+ m.fun[0] = 0
return iname
}
return ""