79098047

Date: 2024-10-17 12:25:47
Score: 2
Natty:
Report link

I think this may be possible on Alpha. See this article:

https://www.cs.umd.edu/~pugh/java/memoryModel/AlphaReordering.html

Also the kernel doc explains how it can happen on systems with split cache:


[!] Note that this extremely counterintuitive situation arises most easily on
machines with split caches, so that, for example, one cache bank processes
even-numbered cache lines and the other bank processes odd-numbered cache
lines.  The pointer P might be stored in an odd-numbered cache line, and the
variable B might be stored in an even-numbered cache line.  Then, if the
even-numbered bank of the reading CPU's cache is extremely busy while the
odd-numbered bank is idle, one can see the new value of the pointer P (&B),
but the old value of the variable B (2).

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Srivatsa