mirror of
https://github.com/golang/go.git
synced 2026-04-02 01:10:27 +09: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user