1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06: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);
if(p) {
acquirep(p);
m->p->tick++;
g->status = Grunning;
g->gcstack = (uintptr)nil;
g->gcsp = (uintptr)nil;
return;