runtime: fix bad g status after copystack

LGTM=khr
R=khr
CC=golang-codereviews, rsc
https://golang.org/cl/69870054
This commit is contained in:
Dmitriy Vyukov 2014-03-06 21:33:19 +04:00
parent aea99eda0f
commit 8ca3372d7b
2 changed files with 7 additions and 0 deletions

View file

@ -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