• Austin Clements's avatar
    runtime: simplify stack walk in panicwrap · 354fa9a8
    Austin Clements authored
    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: 's avatarIan Lance Taylor <iant@golang.org>
    354fa9a8
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...