]> Cypherpunks repositories - gostls13.git/commit
Remove global chanlock.
authorAdam Langley <agl@golang.org>
Fri, 4 Dec 2009 18:57:01 +0000 (10:57 -0800)
committerAdam Langley <agl@golang.org>
Fri, 4 Dec 2009 18:57:01 +0000 (10:57 -0800)
commitd1740bb3a6e9868c2d0786438b907b96b80f1a0f
treec20544948b21a9c806a3fc9d82259c340eedea4c
parentd6b3f37e1ef1714de56fe52bd748c752461e3e24
Remove global chanlock.

On a microbenchmark that ping-pongs on lots of channels, this makes
the multithreaded case about 20% faster and the uniprocessor case
about 1% slower. (Due to cache effects, I expect.)

R=rsc, agl
CC=golang-dev
https://golang.org/cl/166043
src/pkg/runtime/chan.c