aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/stack.c
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-03-06 21:33:19 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-03-06 21:33:19 +0400
commit8ca3372d7b63c8c61ea68daa9e3fc63213eb7965 (patch)
tree7027a2c567af6cbf33c93bbf63f89e8b8d8d540d /src/pkg/runtime/stack.c
parentaea99eda0f88987e06c4ce9e0cf5bdee23b12a98 (diff)
downloadgo-8ca3372d7b63c8c61ea68daa9e3fc63213eb7965.tar.xz
runtime: fix bad g status after copystack
LGTM=khr R=khr CC=golang-codereviews, rsc https://golang.org/cl/69870054
Diffstat (limited to 'src/pkg/runtime/stack.c')
-rw-r--r--src/pkg/runtime/stack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c
index 85885e80f9..e3daed5f28 100644
--- a/src/pkg/runtime/stack.c
+++ b/src/pkg/runtime/stack.c
@@ -640,6 +640,7 @@ runtime·newstack(void)
copystack(gp, nframes, newsize);
if(StackDebug >= 1)
runtime·printf("stack grow done\n");
+ gp->status = oldstatus;
runtime·gogo(&gp->sched);
}
// TODO: if stack is uncopyable because we're in C code, patch return value at