diff options
author | Keith Randall <khr@golang.org> | 2020-08-21 11:09:45 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2020-08-27 21:15:47 +0000 |
commit | 5c2c6d3fbf4f0a1299b5e41463847d242eae19ca (patch) | |
tree | 2db6e03226354716efb26a5233572841c429514f /src/runtime/traceback.go | |
parent | 29634436fd741a7c685bf8f242b6fd62f093d1ad (diff) | |
download | go-5c2c6d3fbf4f0a1299b5e41463847d242eae19ca.tar.gz go-5c2c6d3fbf4f0a1299b5e41463847d242eae19ca.zip |
runtime: framepointers are no longer an experiment - hard code them
I think they are no longer experimental status. Might as well promote
them to permanent.
Change-Id: Id1259601b3dd2061dd60df86ee48080bfb575d2f
Reviewed-on: https://go-review.googlesource.com/c/go/+/249857
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/traceback.go')
-rw-r--r-- | src/runtime/traceback.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 7850eceafa..94f4a44976 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -269,9 +269,9 @@ func gentraceback(pc0, sp0, lr0 uintptr, gp *g, skip int, pcbuf *uintptr, max in frame.varp -= sys.RegSize } - // If framepointer_enabled and there's a frame, then - // there's a saved bp here. - if frame.varp > frame.sp && (framepointer_enabled && GOARCH == "amd64" || GOARCH == "arm64") { + // For architectures with frame pointers, if there's + // a frame, then there's a saved frame pointer here. + if frame.varp > frame.sp && (GOARCH == "amd64" || GOARCH == "arm64") { frame.varp -= sys.RegSize } |