Commit 43c66624 authored by Thomas Munro's avatar Thomas Munro

Minor modernization for README.barrier.

Itanium is very uncommon and being discontinued.  ARM is everywhere.
Prefer ARM as an example of an architecture with weak memory ordering.
parent 7bb97211
...@@ -38,7 +38,7 @@ Surprisingly, however, the second backend could also end up with foo = 0 ...@@ -38,7 +38,7 @@ Surprisingly, however, the second backend could also end up with foo = 0
and bar = 1. The compiler might swap the order of the two stores performed and bar = 1. The compiler might swap the order of the two stores performed
by the first backend, or the two loads performed by the second backend. by the first backend, or the two loads performed by the second backend.
Even if it doesn't, on a machine with weak memory ordering (such as PowerPC Even if it doesn't, on a machine with weak memory ordering (such as PowerPC
or Itanium) the CPU might choose to execute either the loads or the stores or ARM) the CPU might choose to execute either the loads or the stores
out of order. This surprising result can lead to bugs. out of order. This surprising result can lead to bugs.
A common pattern where this actually does result in a bug is when adding items A common pattern where this actually does result in a bug is when adding items
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment