Posted Aug 10, 2012 14:58 UTC (Fri) by quanstro (guest, #77996)
In reply to: ACCESS_ONCE() by jezuch
Parent article: ACCESS_ONCE()
the claim above is that the choice is to
(a) follow the standard, or
(b) do something arbitrary.
that is not the choice in this case. the choice is to
(a) rearrange the code in optimization, or
(b) leave it as the developer wrote it.
personally, i find this sort of code reorg by compilers
to be problematic as it generally makes code quite hard
to reason about. experienced developers would lift the
assignment out of the loop if it mattered, and it were