Commit fee1d1cd authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: properly set G status after syscall

R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/9307045
parent c3dbe5d2
...@@ -1370,6 +1370,8 @@ runtime·exitsyscall(void) ...@@ -1370,6 +1370,8 @@ runtime·exitsyscall(void)
runtime·unlock(&runtime·sched); runtime·unlock(&runtime·sched);
if(p) { if(p) {
acquirep(p); acquirep(p);
m->p->tick++;
g->status = Grunning;
g->gcstack = (uintptr)nil; g->gcstack = (uintptr)nil;
g->gcsp = (uintptr)nil; g->gcsp = (uintptr)nil;
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment