From: Dmitriy Vyukov Date: Sun, 19 May 2013 15:35:09 +0000 (+0400) Subject: runtime: properly set G status after syscall X-Git-Tag: go1.2rc2~1476 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fee1d1cda04e6a936d62be6d06c838150a03d2de;p=gostls13.git runtime: properly set G status after syscall R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/9307045 --- diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index c3d82bd5c0..4875ad87c9 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -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;