1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:04:44 -07:00

runtime: remove 104 byte stack guard

This commit is contained in:
liu-xuewen 2022-11-05 15:31:29 +08:00
parent a343f4017b
commit bcf9000590

View File

@ -168,7 +168,7 @@ TEXT runtime·rt0_go(SB),NOSPLIT|TOPFRAME,$0
// create istack out of the given (operating system) stack.
// _cgo_init may update stackguard.
MOVQ $runtime·g0(SB), DI
LEAQ (-64*1024+104)(SP), BX
LEAQ (-64*1024)(SP), BX
MOVQ BX, g_stackguard0(DI)
MOVQ BX, g_stackguard1(DI)
MOVQ BX, (g_stack+stack_lo)(DI)