]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/objabi: remove StackPreempt
authorAustin Clements <austin@google.com>
Sat, 3 Apr 2021 20:29:34 +0000 (16:29 -0400)
committerAustin Clements <austin@google.com>
Mon, 5 Apr 2021 16:22:19 +0000 (16:22 +0000)
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>
src/cmd/internal/objabi/stack.go

index 05a1d4a4b58caf1b36468b71e8ee9ecfa8b0ec42..1f531176cc66b2c0559674ca41eda9c65457bf2b 100644 (file)
@@ -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