diff options
| author | qmuntal <quimmuntal@gmail.com> | 2026-03-02 08:46:46 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2026-03-18 13:33:58 -0700 |
| commit | 0a56bf885884d07f6391afcbb122041f193eebb2 (patch) | |
| tree | 346118bd43b4f85b0fffe995cf5a13c3430a71a1 /src/runtime/asm_arm64.s | |
| parent | a481ef071e0b30b33b2857919957be151b2d2a6d (diff) | |
| download | go-0a56bf885884d07f6391afcbb122041f193eebb2.tar.xz | |
runtime: make asmcgocall more robust to missing G
Being able to call asmcgocall without a G is useful for code shared
between different stages of the runtime initialization and thread
creation.
Cq-Include-Trybots: luci.golang.try:gotip-darwin-arm64_15,gotip-linux-mips64le,gotip-linux-ppc64le_power10,gotip-linux-riscv64,gotip-openbsd-ppc64,gotip-openbsd-amd64
Change-Id: Ic427764de197e648e8b9987c98c3b7521512cc5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/750541
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/asm_arm64.s')
| -rw-r--r-- | src/runtime/asm_arm64.s | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/runtime/asm_arm64.s b/src/runtime/asm_arm64.s index a9da26990e..02ecfc51a1 100644 --- a/src/runtime/asm_arm64.s +++ b/src/runtime/asm_arm64.s @@ -1244,10 +1244,6 @@ nosave: // This code is like the above sequence but without saving/restoring g // and without worrying about the stack moving out from under us // (because we're on a system stack, not a goroutine stack). - // The above code could be used directly if already on a system stack, - // but then the only path through this code would be a rare case on Solaris. - // Using this code for all "already on system stack" calls exercises it more, - // which should help keep it correct. MOVD fn+0(FP), R1 MOVD arg+8(FP), R0 MOVD RSP, R2 |
