aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2013-07-23 09:31:37 +1000
committerAndrew Gerrand <adg@golang.org>2013-07-23 09:31:37 +1000
commitf2fa9953240092bce6c0bf282cc503104bbb8a4a (patch)
treea6d7c49bc12675bc8880c6c7c4412b0b1529dfad
parent9db29c27845bdd6b21e77a3f910163b2cea6fb7a (diff)
downloadgo-f2fa9953240092bce6c0bf282cc503104bbb8a4a.tar.gz
go-f2fa9953240092bce6c0bf282cc503104bbb8a4a.zip
[release-branch.go1.1] runtime: properly set G status after syscall
««« 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
-rw-r--r--src/pkg/runtime/proc.c2
1 files changed, 2 insertions, 0 deletions
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;