From: Russ Cox Date: Wed, 26 Aug 2009 22:26:09 +0000 (-0700) Subject: recycle G structs X-Git-Tag: weekly.2009-11-06~764 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2aea4a063b364223d299d369a5570fb6bd193f2c;p=gostls13.git recycle G structs R=r DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33887 CL=33904 --- diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 47356851b9..bd8e954929 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -433,6 +433,7 @@ scheduler(void) gp->lockedm = nil; m->lockedg = nil; } + gfput(gp); if(--sched.gcount == 0) exit(0); break;