mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
aea99eda0f
commit
8ca3372d7b
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue