]> Cypherpunks repositories - gostls13.git/commit
runtime: use srcFunc for showframe
authorAustin Clements <austin@google.com>
Mon, 6 Feb 2023 03:02:03 +0000 (22:02 -0500)
committerAustin Clements <austin@google.com>
Fri, 10 Mar 2023 17:18:29 +0000 (17:18 +0000)
commitd829b626812cfe9ee53cb71ccdd75d3fa0eda265
tree672ad19b188ae2efc770c5521271bba0ffdaf1ea
parentf52bede354102a5e16e19381b93d4a469d1286d4
runtime: use srcFunc for showframe

Since srcFunc can represent information for either an real text
function or an inlined function, this means we no longer have to
synthesize a fake _func just to call showframe on an inlined frame.

This is cleaner and also eliminates the one case where _func values
live in the heap. This will let us mark them NotInHeap, which will in
turn eliminate pesky write barriers in the traceback rewrite.

For #54466.

Change-Id: Ibf5e24d01ee4bf384c825e1a4e2922ef444a438e
Reviewed-on: https://go-review.googlesource.com/c/go/+/466097
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/traceback.go