diff options
author | Andrew Gerrand <adg@golang.org> | 2013-07-23 09:31:37 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-07-23 09:31:37 +1000 |
commit | f2fa9953240092bce6c0bf282cc503104bbb8a4a (patch) | |
tree | a6d7c49bc12675bc8880c6c7c4412b0b1529dfad | |
parent | 9db29c27845bdd6b21e77a3f910163b2cea6fb7a (diff) | |
download | go-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.c | 2 |
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; |