manually "shrink wrap" fast path in pthread_once
authorRich Felker <dalias@aerifal.cx>
Mon, 20 Oct 2014 04:22:51 +0000 (00:22 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 20 Oct 2014 04:22:51 +0000 (00:22 -0400)
commitdc95322e18615392eea69de355edd735a15a8f36
tree3386437650008764e8b9a9a61c389d067a6bd3dd
parent60a4783ed4bd0496f7eb31f9b7eb2ad10df46677
manually "shrink wrap" fast path in pthread_once

this change is a workaround for the inability of current compilers to
perform "shrink wrapping" optimizations. in casual testing, it roughly
doubled the performance of pthread_once when called on an
already-finished once control object.
src/thread/pthread_once.c