aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-08-26 11:39:10 -0400
committerRuss Cox <rsc@golang.org>2015-08-28 16:05:59 +0000
commit9c04d00214cb836ddcf4b7b6b0c4b4e5c11bb957 (patch)
treeeda2faf35b674f5692c1a3497d787271e91886a7 /src/runtime/stack1.go
parent06b0f15e092ac8e7344f456875eb77d71fee93f8 (diff)
downloadgo-9c04d00214cb836ddcf4b7b6b0c4b4e5c11bb957.tar.xz
runtime: check explicitly for short unwinding of stacks
Right now we find out implicitly if stack barriers are in place, or defers. This change makes sure we find out about short unwinds always. Change-Id: Ibdde1ba9c79eb792660dcb7aa6f186e4e4d559b3 Reviewed-on: https://go-review.googlesource.com/13966 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/stack1.go')
-rw-r--r--src/runtime/stack1.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/stack1.go b/src/runtime/stack1.go
index 9873bd860b..78d168bb5b 100644
--- a/src/runtime/stack1.go
+++ b/src/runtime/stack1.go
@@ -639,6 +639,7 @@ func copystack(gp *g, newsize uintptr) {
oldsize := gp.stackAlloc
gp.stackAlloc = newsize
gp.stkbar = newstkbar
+ gp.stktopsp += adjinfo.delta
// free old stack
if stackPoisonCopy != 0 {