From: Austin Clements Date: Sat, 3 Apr 2021 20:29:34 +0000 (-0400) Subject: cmd/internal/objabi: remove StackPreempt X-Git-Tag: go1.17beta1~849 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9e3328e7407ab7cd24f48d27ba69d265c57d5805;p=gostls13.git 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 Run-TryBot: Austin Clements TryBot-Result: Go Bot Reviewed-by: Cherry Zhang --- 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