Re:Safe Lock-free Primitives with iceoryx2's ByteAtomic
by wbl on Tuesday August 04, 2026 @11:04AM
(#49169981)
The compiler declares them UB because very useful transformations would change the semantics of races. Races are ok with specially marked variables!
[ Parent
| on HN ]
Re:Safe Lock-free Primitives with iceoryx2's ByteAtomic
by eqvinox on Tuesday August 04, 2026 @11:11AM
(#49170095)
That's not the point of my argument. The compiler declaring things UB needs to be addressed by telling the compiler to not be silly, not by forcing every single access to be on the byte level. And especially not if those are SeqCst atomics.