aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authormzh <mzh@golangcn.org>2022-03-27 23:08:32 +0000
committermzh <mzh@golangcn.org>2022-03-28 01:10:35 +0000
commitad646b33c9fd2366c91a44b262910c1064b24f11 (patch)
treeae2756fe1ae984dfb8d85563218abd64fd437113 /src/runtime/stack.go
parent0eea25159fe58ab956198f3009e6ded875d2796e (diff)
downloadgo-ad646b33c9fd2366c91a44b262910c1064b24f11.tar.xz
Revert "reflect, runtime: add reflect support for regabi on riscv64"
This reverts commit 56400fc70675cc2f404f33e3ed13386967cfe4da. Reason for revert: this CL requires CL360296 be merged Change-Id: I4c48c4d23b73b6e892cf86cbbc864698ebc5c992 Reviewed-on: https://go-review.googlesource.com/c/go/+/396076 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: mzh <mzh@golangcn.org> Run-TryBot: mzh <mzh@golangcn.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
-rw-r--r--src/runtime/stack.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index 54a02173c3..edc37d4878 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -1332,8 +1332,7 @@ func getStackMap(frame *stkframe, cache *pcvalueCache, debug bool) (locals, args
}
// stack objects.
- if (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "ppc64" || GOARCH == "ppc64le" || GOARCH == "riscv64") &&
- unsafe.Sizeof(abi.RegArgs{}) > 0 && frame.argmap != nil {
+ if (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "ppc64" || GOARCH == "ppc64le") && unsafe.Sizeof(abi.RegArgs{}) > 0 && frame.argmap != nil {
// argmap is set when the function is reflect.makeFuncStub or reflect.methodValueCall.
// We don't actually use argmap in this case, but we need to fake the stack object
// record for these frames which contain an internal/abi.RegArgs at a hard-coded offset.