]> Cypherpunks repositories - gostls13.git/commit
runtime: fix race condition between GC and setGCPercent
authorDmitriy Vyukov <dvyukov@google.com>
Sat, 15 Jun 2013 12:07:06 +0000 (16:07 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Sat, 15 Jun 2013 12:07:06 +0000 (16:07 +0400)
commit94dc963b558b3d37906af53eca45c5ae807a9e84
treeb48358854b4c5ff17252b72fec0ff189ed5a729b
parent4bb491b12e1461252c9375d6b796c8658b10965f
runtime: fix race condition between GC and setGCPercent
If first GC runs concurrently with setGCPercent,
it can overwrite gcpercent value with default.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/10242047
src/pkg/runtime/mgc0.c