diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-09-30 19:34:33 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-09-30 19:34:33 +0400 |
| commit | 12308d5a0bb424ef3ee9a664c77192b48e3df84c (patch) | |
| tree | 6fd4ee669012c2941f3a5c4e820da2756aaa1ed7 /src/runtime/stack.c | |
| parent | 70b2da98ca097598326d5d01406b287bcd5eb6ee (diff) | |
| download | go-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/stack.c')
| -rw-r--r-- | src/runtime/stack.c | 2 |
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, |
