]> Cypherpunks repositories - gostls13.git/commit
runtime: don't check for String/Error methods in printany
authorIan Lance Taylor <iant@golang.org>
Fri, 23 Feb 2018 18:34:01 +0000 (10:34 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 23 Feb 2018 22:39:46 +0000 (22:39 +0000)
commit804e3e565e98e1ff3a22eb354a473225f6dc7351
tree17140bfce6bd2ea40c967e9df4610b0a754b2fc3
parenta5e8e2d99815346cdff61905237056e0095c75ea
runtime: don't check for String/Error methods in printany

They have either already been called by preprintpanics, or they can
not be called safely because of the various conditions checked at the
start of gopanic.

Fixes #24059

Change-Id: I4a6233d12c9f7aaaee72f343257ea108bae79241
Reviewed-on: https://go-review.googlesource.com/96755
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/error.go
src/runtime/iface.go
src/runtime/panic.go