This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [PATCH] Optimized __cxa_guard_{acquire,release,abort} for Linux


This looks great, and I think should definitely go into 4.3. One question: why do you need all the cmpxchg in the abort/unlock functions? If we're in those functions, we already got the lock, so no other thread should be modifying the guard. Can't we just do a non-atomic assignment and then FUTEX_WAKE?

Jason


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