Re:Making the Tokio scheduler 10x faster
by CodesInChaos on Tuesday October 15, 2019 @07:44AM
(#21257486)
I thought `UnsafeCell` is only exempt from the aliasing rules, not the memory model? I.e. the compiler can use it as it wants, if it can prove that it's not accessed in the meantime (which can be difficult without relying aliasing rules, but possible if the code is simple enough)
[ Parent
| on HN ]
Re:Making the Tokio scheduler 10x faster
by carllerche on Tuesday October 15, 2019 @08:22AM
(#21257654)
To be honest, I'm not entirely following what you see as the danger. The compiler can't generate code that randomly goes and writes at pointer locations.