commit | b2beb8abf03f640d8ff69e9ad5108ce2f1054077 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Jan 19 21:09:58 2010 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Jan 19 21:09:58 2010 -0800 |
tree | aec3f1c7e7d7a8fd57bbbcd3ff32f97716682a60 | |
parent | dfc0ed9559ebd732871d052992ee693c17d57734 [diff] |
Add explicit locking. Since gcco runs goroutines in independent threads, it needs locking for the global variables. This shows up when I use ordinary increments rather than locked increments for var++. R=ken2, ken3 CC=golang-dev https://golang.org/cl/190074