summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-03-22 15:52:26 +0000
committerjhb <jhb@FreeBSD.org>2010-03-22 15:52:26 +0000
commit9d42867c19941d56932e8cea0e02a9538e58cd55 (patch)
tree8a9de0a9d30b1898d2197f147715c5847c2c22f1 /sbin
parent029ba63e80a7d118a7fb361253bb118145540a63 (diff)
downloadFreeBSD-src-9d42867c19941d56932e8cea0e02a9538e58cd55.zip
FreeBSD-src-9d42867c19941d56932e8cea0e02a9538e58cd55.tar.gz
MFC 204950,205020:
Use thr_once() with once_t controls to initialize various thread_key_t objects used to provide per-thread storage in the RPC code. Almost all of these used double-checking with a dedicated mutex (tsd_lock) to do this before. However, that is not always safe with more relaxed memory orders. There were also other bugs, such as one in __rpc_createrr() that caused a new key to be allocated each time __rpc_createrr() was invoked.
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud