On 1/6/25 5:59 PM, Linus Torvalds wrote:
On Mon, 6 Jan 2025 at 16:13, Jeff Law <jeffreya...@gmail.com> wrote:

But in the case of concurrent accesses, shouldn't these objects be
declared as atomic?

No.

They aren't concurrent accesses to the same variable.

They are concurrent accesses to *different* memory locations, and the
compiler is not allowed to mess them up.
You're absolutely right.  Definitely not kosher.  Thanks.

Jeff

Reply via email to