]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/54172 (__cxa_guard_acquire thread-safety issue)
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 6 Sep 2012 20:31:08 +0000 (20:31 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 6 Sep 2012 20:31:08 +0000 (20:31 +0000)
commitfa129f20b3d956e6e8a3a017c57e0c62a8ba3002
treefc46d4517215160085224e179732892943443922
parent385c06817b589184432e39c9cd318ec7e32d3de4
re PR libstdc++/54172 (__cxa_guard_acquire thread-safety issue)

2012-09-06  Thiago Macieira  <thiago.macieira@intel.com>

PR libstdc++/54172
        * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if
        we detect that another thread has had success. Don't compare_exchange
        from a finished state back to a waiting state. Comment.

From-SVN: r191042
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/guard.cc