diff options
author | Alan Modra <amodra@gmail.com> | 2012-09-25 16:30:06 -0500 |
---|---|---|
committer | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2012-09-25 16:30:06 -0500 |
commit | 7e2fca8dd22e3bd932581d6479b0c552deff00b6 (patch) | |
tree | 964db807642e388bfedf3684ab50442a86efadbe /ChangeLog | |
parent | 1c530d024418c75bb61eecf23aea1f4179fbf0fe (diff) | |
download | glibc-7e2fca8dd22e3bd932581d6479b0c552deff00b6.tar.gz glibc-7e2fca8dd22e3bd932581d6479b0c552deff00b6.tar.xz glibc-7e2fca8dd22e3bd932581d6479b0c552deff00b6.zip |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 9e102faf60..1fff9bad72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2012-09-25 Alan Modra <amodra@gmail.com> + + * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once): + Add release barrier before setting once_control to say + initialisation is done. Add hints on lwarx. Use macro in + place of isync. + (clear_once_control): Add release barrier. + 2012-09-25 Joseph Myers <joseph@codesourcery.com> [BZ #13629] |