mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 0 additions and 4 deletions
|
|
@ -13,10 +13,6 @@ const (
|
||||||
StackSmall = 128
|
StackSmall = 128
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
StackPreempt = -1314 // 0xfff...fade
|
|
||||||
)
|
|
||||||
|
|
||||||
// Initialize StackGuard and StackLimit according to target system.
|
// Initialize StackGuard and StackLimit according to target system.
|
||||||
var StackGuard = 928*stackGuardMultiplier() + StackSystem
|
var StackGuard = 928*stackGuardMultiplier() + StackSystem
|
||||||
var StackLimit = StackGuard - StackSystem - StackSmall
|
var StackLimit = StackGuard - StackSystem - StackSmall
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue