From f2fa9953240092bce6c0bf282cc503104bbb8a4a Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Tue, 23 Jul 2013 09:31:37 +1000 Subject: [PATCH] [release-branch.go1.1] runtime: properly set G status after syscall MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« CL 9307045 / fab6ba2a2d10 runtime: properly set G status after syscall R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/9307045 »»» R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/11694043 --- 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 31876b62a9..5734509e0c 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -1371,6 +1371,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.50.0