From f719d5cffdb8298eff7a5ef533fe95290e8c869c Mon Sep 17 00:00:00 2001 From: Mauri de Souza Meneguzzo Date: Thu, 25 Jan 2024 23:11:02 +0000 Subject: runtime: crash stack support for loong64 Change-Id: Icc2641b888440cc27444b5dfb2b8ff286e6a595d GitHub-Last-Rev: f5772e32e9190ab1eed94fcf2c9e58d6bc0d74d6 GitHub-Pull-Request: golang/go#63923 Reviewed-on: https://go-review.googlesource.com/c/go/+/539536 Reviewed-by: abner chenc Run-TryBot: Joel Sing Reviewed-by: Michael Knyszek Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot --- src/runtime/proc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/proc.go') diff --git a/src/runtime/proc.go b/src/runtime/proc.go index b3caeb9a7c..c1b3ce20d5 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -579,7 +579,7 @@ func switchToCrashStack(fn func()) { // Disable crash stack on Windows for now. Apparently, throwing an exception // on a non-system-allocated crash stack causes EXCEPTION_STACK_OVERFLOW and // hangs the process (see issue 63938). -const crashStackImplemented = (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "mips64" || GOARCH == "mips64le" || GOARCH == "ppc64" || GOARCH == "ppc64le" || GOARCH == "riscv64" || GOARCH == "s390x" || GOARCH == "wasm") && GOOS != "windows" +const crashStackImplemented = (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "loong64" || GOARCH == "mips64" || GOARCH == "mips64le" || GOARCH == "ppc64" || GOARCH == "ppc64le" || GOARCH == "riscv64" || GOARCH == "s390x" || GOARCH == "wasm") && GOOS != "windows" //go:noescape func switchToCrashStack0(fn func()) // in assembly -- cgit v1.3-6-g1900