From fee1d1cda04e6a936d62be6d06c838150a03d2de Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Sun, 19 May 2013 19:35:09 +0400 Subject: [PATCH] runtime: properly set G status after syscall R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/9307045 --- src/pkg/runtime/proc.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.48.1