mirror of
https://github.com/golang/go
synced 2024-09-29 13:24:28 -06:00
runtime: remove 104 byte stack guard
The number 104 appears to date back to the
first implementation of split stacks in
https://go.googlesource.com/go/+/b987f7a757f53f460973622a36eebb696f9b5060.
That change introduces a 104 byte stack guard.
it doesn't makes any sense today.
Change-Id: I73069f6d1a827653af63e616f0119fbac809882e
GitHub-Last-Rev: bcf9000590
GitHub-Pull-Request: golang/go#56594
Reviewed-on: https://go-review.googlesource.com/c/go/+/448036
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
12befc3ce3
commit
57236fe9f7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user