]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify stack walk in panicwrap
authorAustin Clements <austin@google.com>
Mon, 12 Jun 2017 18:24:16 +0000 (14:24 -0400)
committerAustin Clements <austin@google.com>
Fri, 22 Sep 2017 22:17:17 +0000 (22:17 +0000)
commit354fa9a84f7b88fe6b9ebf578e6671c2b511a402
treeac4e4bb9c364b7880ec6050531c173d700bb12a2
parent229aaac19e041ac74ab043d6ef09c8406bb0a9e7
runtime: simplify stack walk in panicwrap

panicwrap currently uses runtime.Callers and runtime.CallersFrames to
find the name of its caller. Simplify this by using getcallerpc.

This will be important for #16723, since to fix that we're going to
make CallersFrames skip the wrapper method, which is exactly what
panicwrap needs to see.

Change-Id: Icb0776d399966e31595f3ee44f980290827e32a6
Reviewed-on: https://go-review.googlesource.com/45411
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/error.go