]> Cypherpunks repositories - gostls13.git/commit
runtime: wait to allocate mach semaphores backing Locks until needed
authorRuss Cox <rsc@golang.org>
Wed, 20 Jan 2010 05:14:15 +0000 (21:14 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 20 Jan 2010 05:14:15 +0000 (21:14 -0800)
commit0365b989a49077eb7917d1c4ba31f5d4b668c144
treede129a37fef13ae37d8ea277596cc637f07fbc0b
parentb2beb8abf03f640d8ff69e9ad5108ce2f1054077
runtime: wait to allocate mach semaphores backing Locks until needed

need better management of mach semaphores eventually
but this avoids allocating them for uncontended Locks.

R=r
CC=agl1, golang-dev
https://golang.org/cl/190079
src/pkg/runtime/darwin/thread.c