1 2006-12-19 Jakub Jelinek <jakub@redhat.com>
3 * nss/getXXbyYY_r.c: Include atomic.h.
4 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
5 add atomic_write_barrier () in between.
7 --- libc/nss/getXXbyYY_r.c 16 Sep 2004 22:24:09 -0000 1.61
8 +++ libc/nss/getXXbyYY_r.c 19 Dec 2006 15:45:08 -0000 1.62
17 @@ -173,9 +174,6 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, L
18 startp = (service_user *) -1l;
25 /* The resolver code will really be used so we have to
27 @@ -190,6 +188,11 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, L
28 if (!_res_hconf.initialized)
30 #endif /* need _res_hconf */
33 + /* Make sure start_fct is written before startp. */
34 + atomic_write_barrier ();