aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-02-09 14:03:49 -0500
committerAustin Clements <austin@google.com>2017-02-14 15:52:54 +0000
commitd089a6c7187f1ff85277515405ec6c641588a7ff (patch)
tree2eb4d16038ec3ade478a83249cc879898efd5b8b /src/runtime/runtime2.go
parentc5ebcd2c8ac6c5bdf85ec0a346974efd4b0cbe49 (diff)
downloadgo-d089a6c7187f1ff85277515405ec6c641588a7ff.tar.xz
runtime: remove stack barriers
Now that we don't rescan stacks, stack barriers are unnecessary. This removes all of the code and structures supporting them as well as tests that were specifically for stack barriers. Updates #17503. Change-Id: Ia29221730e0f2bbe7beab4fa757f31a032d9690c Reviewed-on: https://go-review.googlesource.com/36620 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index 80395193da..4812268a19 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -326,12 +326,6 @@ type stack struct {
hi uintptr
}
-// stkbar records the state of a G's stack barrier.
-type stkbar struct {
- savedLRPtr uintptr // location overwritten by stack barrier PC
- savedLRVal uintptr // value overwritten at savedLRPtr
-}
-
type g struct {
// Stack parameters.
// stack describes the actual stack memory: [stack.lo, stack.hi).
@@ -351,8 +345,6 @@ type g struct {
sched gobuf
syscallsp uintptr // if status==Gsyscall, syscallsp = sched.sp to use during gc
syscallpc uintptr // if status==Gsyscall, syscallpc = sched.pc to use during gc
- stkbar []stkbar // stack barriers, from low to high (see top of mstkbar.go)
- stkbarPos uintptr // index of lowest stack barrier not hit
stktopsp uintptr // expected sp at top of stack, to check in traceback
param unsafe.Pointer // passed parameter on wakeup
atomicstatus uint32