diff options
| author | Austin Clements <austin@google.com> | 2023-02-05 22:02:03 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2023-03-10 17:18:29 +0000 |
| commit | d829b626812cfe9ee53cb71ccdd75d3fa0eda265 (patch) | |
| tree | 672ad19b188ae2efc770c5521271bba0ffdaf1ea /src/runtime/stack_test.go | |
| parent | f52bede354102a5e16e19381b93d4a469d1286d4 (diff) | |
| download | go-d829b626812cfe9ee53cb71ccdd75d3fa0eda265.tar.xz | |
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>
Diffstat (limited to 'src/runtime/stack_test.go')
0 files changed, 0 insertions, 0 deletions
