On 1 Feb 2021, at 13:53, Hans Petter Selasky <[email protected]> wrote: > On 2/1/21 1:40 PM, Mateusz Guzik wrote: >> +/* >> + * Currently all architectures provide acquire and release fences on their >> own, >> + * but they don't provide consume. Kludge below allows relevant code to stop >> + * openly resorting to the stronger acquire fence, to be sorted out. >> + */ >> +#define atomic_load_consume_ptr(p) \ >> + ((__typeof(*p)) atomic_load_acq_ptr((uintptr_t *)p)) >> + > > Are you missing: > > CTASSERT(sizeof(*p) == sizeof(void *)) ????
I also commented on the head commit that this is a waste of time and will likely never be anything other than an acquire, but never got a reply. Jess _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
