diff options
| author | Austin Clements <austin@google.com> | 2017-05-18 14:50:12 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-05-23 20:11:38 +0000 |
| commit | 9f03e89552075d88184469fa7701007ed8b36130 (patch) | |
| tree | f886383bfb4a994fdf3109a9596253fd35ee0b61 /src/runtime/stack.go | |
| parent | 475425201a735762bccbc77d00b00a799d425a9f (diff) | |
| download | go-9f03e89552075d88184469fa7701007ed8b36130.tar.xz | |
runtime: remove unused copies of special stack guards
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>
Diffstat (limited to 'src/runtime/stack.go')
| -rw-r--r-- | src/runtime/stack.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go index e1c70c3158..525d0b14c1 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -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 |
