aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_libc2.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2021-07-20 17:29:15 +1000
committerJoel Sing <joel@sing.id.au>2021-08-16 08:37:46 +0000
commitfcdc3c098cd016af9ba5e626bd4525575bb984f2 (patch)
tree05bc67b95988ed5c9fcb5ad3c7db481adcf86b29 /src/syscall/exec_libc2.go
parent160d7972607d5c630c7cfd1b4b54f7c27c3387b1 (diff)
downloadgo-fcdc3c098cd016af9ba5e626bd4525575bb984f2.tar.xz
runtime: make asmcgocall g0/gsignal checks consistent
In asmcgocall() we need to switch to the g0 stack if we're not already on the g0 stack or the gsignal stack. The prefered way of doing this is to check gsignal first, then g0, since if we are going to switch to g0 we will need g0 handy (thus avoiding a second load). Rewrite/reorder 386 and amd64 to check gsignal first - this shaves a few assembly instructions off and makes the order consistent with arm, arm64, mips64 and ppc64. Add missing gsignal checks to mips, riscv64 and s390x. Change-Id: I1b027bf393c25e0c33e1d8eb80de67e4a0a3f561 Reviewed-on: https://go-review.googlesource.com/c/go/+/335869 Trust: Joel Sing <joel@sing.id.au> Run-TryBot: Joel Sing <joel@sing.id.au> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/syscall/exec_libc2.go')
0 files changed, 0 insertions, 0 deletions