Cheap acquire loads

Florian Weimer fweimer@redhat.com
Mon Feb 15 10:54:14 GMT 2021


Do we have a preprocessor macro (or anything else which evaluates to a
compile-time constant) which indicates whether acquire loads are cheap
(as cheap as regular loads, ignoring compiler barriers)?

If acquire loads are cheap, it may make sense to use them in
single-threaded mode, too, rather than avoiding them there.  This might
get rid of the single-threaded check in some cases.

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill



More information about the Libc-alpha mailing list