]> Cypherpunks repositories - gostls13.git/commit
runtime: make iface/eface handling more type safe
authorMatthew Dempsky <mdempsky@google.com>
Wed, 21 Oct 2015 19:12:25 +0000 (12:12 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 21 Oct 2015 23:08:22 +0000 (23:08 +0000)
commit84afa1be76f89a602c1aef73603175e644f1dc2f
tree090b42d927619808e5c4bb61461dfc20b5857463
parent03b0065204df9cd141919890b23de6291ab52885
runtime: make iface/eface handling more type safe

Change compiler-invoked interface functions to directly take
iface/eface parameters instead of fInterface/interface{} to avoid
needing to always convert.

For the handful of functions that legitimately need to take an
interface{} parameter, add efaceOf to type-safely convert *interface{}
to *eface.

Change-Id: I8928761a12fd3c771394f36adf93d3006a9fcf39
Reviewed-on: https://go-review.googlesource.com/16166
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/alg.go
src/runtime/error.go
src/runtime/export_test.go
src/runtime/heapdump.go
src/runtime/iface.go
src/runtime/mbitmap.go
src/runtime/mfinal.go
src/runtime/print.go
src/runtime/runtime2.go