]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused copies of special stack guards
authorAustin Clements <austin@google.com>
Thu, 18 May 2017 18:50:12 +0000 (14:50 -0400)
committerAustin Clements <austin@google.com>
Tue, 23 May 2017 20:11:38 +0000 (20:11 +0000)
There are two copies each of the stackPreempt/_StackPreempt and
stackFork/_StackFork constants. Remove the ones left over from C that
are no longer used.

Change-Id: I849604c72c11e4a0cb08e45e9817eb3f5a6ce8ba
Reviewed-on: https://go-review.googlesource.com/43638
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/stack.go

index e1c70c3158608cf8f75ffbaee42bc4496bae0004..525d0b14c1c5d7bdc933ec9bf2e4d2db6efdae52 100644 (file)
@@ -102,15 +102,6 @@ const (
        _StackLimit = _StackGuard - _StackSystem - _StackSmall
 )
 
-// Goroutine preemption request.
-// Stored into g->stackguard0 to cause split stack check failure.
-// Must be greater than any real sp.
-// 0xfffffade in hex.
-const (
-       _StackPreempt = uintptrMask & -1314
-       _StackFork    = uintptrMask & -1234
-)
-
 const (
        // stackDebug == 0: no logging
        //            == 1: logging of per-stack operations