aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objabi/stack.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2021-04-03 16:29:34 -0400
committerAustin Clements <austin@google.com>2021-04-05 16:22:19 +0000
commit9e3328e7407ab7cd24f48d27ba69d265c57d5805 (patch)
treeb22ee57226d797f801b796e88bbd07d4946bbff7 /src/cmd/internal/objabi/stack.go
parent191167c2b20c87acbc9b8033dac900b8811b146a (diff)
downloadgo-9e3328e7407ab7cd24f48d27ba69d265c57d5805.tar.xz
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>
Diffstat (limited to 'src/cmd/internal/objabi/stack.go')
-rw-r--r--src/cmd/internal/objabi/stack.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cmd/internal/objabi/stack.go b/src/cmd/internal/objabi/stack.go
index 05a1d4a4b5..1f531176cc 100644
--- a/src/cmd/internal/objabi/stack.go
+++ b/src/cmd/internal/objabi/stack.go
@@ -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