https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126293

admin_public at liblfds dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |admin_public at liblfds dot org

--- Comment #4 from admin_public at liblfds dot org ---
> It would be nice if GCC offered an option to do that, avoiding the overhead 
> of calling into libatomic.

IIRC, if atomics not supported, libatomic provides a non-atomic fallback, which
is specifically wrong and actually *not viable* for some use cases, because now
you have sleeps (and also an order*s* of magnitude performance difference,
which is fine if you're taking like one lock, once, but if you have a data
structure, it's game over).

I had to specifically *avoid* libatomic because of this, writing my own on-line
assembly.

Compiler intrinsics avoid this problem, and allow me to get rid of my own
assembly.

Reply via email to