V
Volker Borchert
Hello all,
reading on the "new" memory model and AtomicReferenceArray, it
seems that anything done before a .set() on an AtomicReferenceArray
"happens-before" anything done after a .get() on the same
AtomicReferenceArray.
Two questions:
1. Am I right?
2. If so, does this hold true if the write does not actually change
the value, in other words, if the write only "refreshes" the
memory location?
Thank you
V.B.
reading on the "new" memory model and AtomicReferenceArray, it
seems that anything done before a .set() on an AtomicReferenceArray
"happens-before" anything done after a .get() on the same
AtomicReferenceArray.
Two questions:
1. Am I right?
2. If so, does this hold true if the write does not actually change
the value, in other words, if the write only "refreshes" the
memory location?
Thank you
V.B.