]> Cypherpunks repositories - gostls13.git/commitdiff
recycle G structs
authorRuss Cox <rsc@golang.org>
Wed, 26 Aug 2009 22:26:09 +0000 (15:26 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 26 Aug 2009 22:26:09 +0000 (15:26 -0700)
R=r
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=33887
CL=33904

src/pkg/runtime/proc.c

index 47356851b9ea2bf6df096e002b8f5259905c13e7..bd8e954929153cf385d3243d9ac04b3f1f4feab9 100644 (file)
@@ -433,6 +433,7 @@ scheduler(void)
                                gp->lockedm = nil;
                                m->lockedg = nil;
                        }
+                       gfput(gp);
                        if(--sched.gcount == 0)
                                exit(0);
                        break;