1
0
mirror of https://github.com/golang/go synced 2024-11-26 12:37:57 -07:00

runtime: properly set G status after syscall

R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/9307045
This commit is contained in:
Dmitriy Vyukov 2013-05-19 19:35:09 +04:00
parent c3dbe5d24c
commit fee1d1cda0

View File

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