Full name of submitter (unless configured in github; will be published with the issue): Jim X
[intro.races] p20 says:
The value observed by a load of an atomic depends on the “happens before” relation, which depends on the values observed by loads of atomics.
However, which value is observed cannot imply the "happens before" relationship.
[intro.races] p14 says:
The value of an atomic object M, as determined by evaluation B, shall be the value stored by some side effect A that modifies M, where B does not happen before A.
This rule just implies: B may load A if B does not happen before A. However, the note seems to imply: B load A can imply B does not happen before A.
That is P -> Q does not mean Q -> P. The note seems to be a bit misleading here.
Full name of submitter (unless configured in github; will be published with the issue): Jim X
[intro.races] p20 says:
However, which value is observed cannot imply the "happens before" relationship.
[intro.races] p14 says:
This rule just implies:
B
may loadA
ifB
does not happen beforeA
. However, the note seems to imply:B
loadA
can implyB
does not happen beforeA
.That is
P -> Q
does not meanQ -> P
. The note seems to be a bit misleading here.