]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: properly set G status after syscall
authorDmitriy Vyukov <dvyukov@google.com>
Sun, 19 May 2013 15:35:09 +0000 (19:35 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Sun, 19 May 2013 15:35:09 +0000 (19:35 +0400)
R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/9307045

src/pkg/runtime/proc.c

index c3d82bd5c08ca275b9a48efaaef2419d1650396d..4875ad87c9e6e9181602c99d90e421d8588a1f18 100644 (file)
@@ -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;