This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [google/gcc-4_7] fix race in __cxa_guard_acquire


On 2012-09-19 15:59 , Ollie Wild wrote:

         * 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.  Fix up the last
         argument of the first __atomic_compare_exchange_n.  Comment.


OK.



Diego.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]