Skip to content

Commit eb4a8af

Browse files
author
Martin Buchholz
committed
8260664: Phaser.arrive() memory consistency effects
Reviewed-by: dl
1 parent 9221540 commit eb4a8af

File tree

1 file changed

+6
-0
lines changed
  • src/java.base/share/classes/java/util/concurrent

1 file changed

+6
-0
lines changed

src/java.base/share/classes/java/util/concurrent/Phaser.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@
148148
* returns snapshots of these state queries in a form convenient for
149149
* informal monitoring.
150150
*
151+
* <p>Memory consistency effects: Actions prior to any form of arrive
152+
* method <a href="package-summary.html#MemoryVisibility">
153+
* <i>happen-before</i></a> a corresponding phase advance and
154+
* onAdvance actions (if present), which in turn <i>happen-before</i>
155+
* actions following the phase advance.
156+
*
151157
* <p><b>Sample usages:</b>
152158
*
153159
* <p>A {@code Phaser} may be used instead of a {@code CountDownLatch}

0 commit comments

Comments
 (0)