Fix bugs in powerpc pthread_once.
commit7e2fca8dd22e3bd932581d6479b0c552deff00b6
authorAlan Modra <amodra@gmail.com>
Tue, 25 Sep 2012 21:30:06 +0000 (25 16:30 -0500)
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>
Tue, 25 Sep 2012 21:30:06 +0000 (25 16:30 -0500)
tree964db807642e388bfedf3684ab50442a86efadbe
parent1c530d024418c75bb61eecf23aea1f4179fbf0fe
Fix bugs in powerpc pthread_once.

Ref gcc.gnu.org/bugzilla/show_bug.cgi?id=52839#c10

Release barriers are needed to ensure that any memory written by
init_routine is seen by other threads before *once_control changes.
In the case of clear_once_control we need to flush any partially
written state.
ChangeLog
nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c