mirror of
https://github.com/golang/go
synced 2024-11-11 22:20:22 -07:00
cmd/internal/objabi: remove StackPreempt
None of the stack check prologues depend on this constant at this point (and, indeed, they shouldn't). Change-Id: Iaa40d9c47285b26952f02a7bdde574e8385ffe95 Reviewed-on: https://go-review.googlesource.com/c/go/+/307152 Trust: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
191167c2b2
commit
9e3328e740
@ -13,10 +13,6 @@ const (
|
||||
StackSmall = 128
|
||||
)
|
||||
|
||||
const (
|
||||
StackPreempt = -1314 // 0xfff...fade
|
||||
)
|
||||
|
||||
// Initialize StackGuard and StackLimit according to target system.
|
||||
var StackGuard = 928*stackGuardMultiplier() + StackSystem
|
||||
var StackLimit = StackGuard - StackSystem - StackSmall
|
||||
|
Loading…
Reference in New Issue
Block a user