mirror of
https://github.com/golang/go
synced 2024-11-26 10:38:07 -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);
|
||||
if(p) {
|
||||
acquirep(p);
|
||||
m->p->tick++;
|
||||
g->status = Grunning;
|
||||
g->gcstack = (uintptr)nil;
|
||||
g->gcsp = (uintptr)nil;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user