]> Cypherpunks repositories - gostls13.git/commit
runtime: fix sudog leak in syncsemrelease
authorRuss Cox <rsc@golang.org>
Mon, 10 Nov 2014 01:21:03 +0000 (20:21 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 10 Nov 2014 01:21:03 +0000 (20:21 -0500)
commit2ad99f09609de1e709aeacaeb277d637729e8081
tree3cf6e9c347894281159e487e52abd789949693f8
parent2cd05c34046c4802fb2494c718d651045c2a3eb0
runtime: fix sudog leak in syncsemrelease

Manifested as increased memory usage in a Google production system.

Not an unbounded leak, but can significantly increase the number
of sudogs allocated between garbage collections.

I checked all the other calls to acquireSudog.
This is the only one that was missing a releaseSudog.

LGTM=r, dneil
R=dneil, r
CC=golang-codereviews
https://golang.org/cl/169260043
src/runtime/sema.go