mirror of
https://github.com/golang/go
synced 2024-11-26 14:26:51 -07:00
runtime: properly set G status after syscall
R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/9307045
This commit is contained in:
parent
c3dbe5d24c
commit
fee1d1cda0
@ -1370,6 +1370,8 @@ runtime·exitsyscall(void)
|
|||||||
runtime·unlock(&runtime·sched);
|
runtime·unlock(&runtime·sched);
|
||||||
if(p) {
|
if(p) {
|
||||||
acquirep(p);
|
acquirep(p);
|
||||||
|
m->p->tick++;
|
||||||
|
g->status = Grunning;
|
||||||
g->gcstack = (uintptr)nil;
|
g->gcstack = (uintptr)nil;
|
||||||
g->gcsp = (uintptr)nil;
|
g->gcsp = (uintptr)nil;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user