mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
recycle G structs
R=r DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33887 CL=33904
This commit is contained in:
parent
8ce468ea2f
commit
2aea4a063b
1 changed files with 1 additions and 0 deletions
|
|
@ -433,6 +433,7 @@ scheduler(void)
|
|||
gp->lockedm = nil;
|
||||
m->lockedg = nil;
|
||||
}
|
||||
gfput(gp);
|
||||
if(--sched.gcount == 0)
|
||||
exit(0);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue