Date: Mon, 22 Mar 2010 15:54:56 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/rpc Symbol.map clnt_simple.c getnetconfig.c key_call.c mt_misc.c mt_misc.h rpc_generic.c rpc_soc.c Message-ID: <201003221555.o2MFt7h4039216@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2010-03-22 15:54:56 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) lib/libc/rpc Symbol.map clnt_simple.c getnetconfig.c key_call.c mt_misc.c mt_misc.h rpc_generic.c rpc_soc.c Log: SVN rev 205450 on 2010-03-22 15:54:56Z by jhb 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. Revision Changes Path 1.3.2.1 +0 -4 src/lib/libc/rpc/Symbol.map 1.20.2.1 +16 -6 src/lib/libc/rpc/clnt_simple.c 1.14.2.3 +15 -14 src/lib/libc/rpc/getnetconfig.c 1.16.2.2 +13 -7 src/lib/libc/rpc/key_call.c 1.7.2.1 +13 -14 src/lib/libc/rpc/mt_misc.c 1.2.2.1 +0 -1 src/lib/libc/rpc/mt_misc.h 1.14.2.1 +15 -13 src/lib/libc/rpc/rpc_generic.c 1.15.2.1 +9 -6 src/lib/libc/rpc/rpc_soc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003221555.o2MFt7h4039216>