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
Showing
Please
register
or
sign in
to comment