aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-09-30 19:34:33 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-09-30 19:34:33 +0400
commit12308d5a0bb424ef3ee9a664c77192b48e3df84c (patch)
tree6fd4ee669012c2941f3a5c4e820da2756aaa1ed7 /src/runtime
parent70b2da98ca097598326d5d01406b287bcd5eb6ee (diff)
downloadgo-12308d5a0bb424ef3ee9a664c77192b48e3df84c.tar.xz
runtime: fix throwsplit check
Newstack runs on g0, g0->throwsplit is never set. LGTM=rsc R=rsc CC=golang-codereviews, khr https://golang.org/cl/147370043
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack.c b/src/runtime/stack.c
index 2d23c717bd..8562b94076 100644
--- a/src/runtime/stack.c
+++ b/src/runtime/stack.c
@@ -695,7 +695,7 @@ runtime·newstack(void)
runtime·traceback(morebuf.pc, morebuf.sp, morebuf.lr, morebuf.g);
runtime·throw("runtime: wrong goroutine in newstack");
}
- if(g->throwsplit)
+ if(g->m->curg->throwsplit)
runtime·throw("runtime: stack split at bad time");
// The goroutine must be executing in order to call newstack,