]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] runtime: call cgocallbackg indirectly on ARM64
authorCherry Mui <cherryyz@google.com>
Wed, 2 Jun 2021 23:43:28 +0000 (19:43 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 3 Jun 2021 16:28:28 +0000 (16:28 +0000)
commit3de49868526d5bfae2f9bda8be1a60c022cf3363
tree2477a00c33247014d54d9f0ae03843ca2843956a
parent5a40fab19fd615aa879e8f499a63e31d98257886
[dev.typeparams] runtime: call cgocallbackg indirectly on ARM64

This is CL 312669, for ARM64.

cgocallback calls cgocallbackg after switching the stack. Call it
indirectly to bypass the linker's nosplit check. In particular,
this avoids a nosplit stack overflow on Windows when register ABI
is enabled.

Change-Id: I7054a750fb0ec2579d46004f94b46b6f7b9e3a21
Reviewed-on: https://go-review.googlesource.com/c/go/+/324734
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/asm_arm64.s