mirror of
https://github.com/golang/go
synced 2024-11-14 17:30:29 -07:00
[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
This commit is contained in:
parent
9db29c2784
commit
f2fa995324
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user