Skip to content
Permalink
Browse files
8260664: Phaser.arrive() memory consistency effects
Reviewed-by: dl
  • Loading branch information
Martin Buchholz committed Mar 8, 2021
1 parent 9221540 commit eb4a8af559cae9374d29617053a1113ac4b7de2e
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/java.base/share/classes/java/util/concurrent/Phaser.java
@@ -148,6 +148,12 @@
* returns snapshots of these state queries in a form convenient for
* informal monitoring.
*
* <p>Memory consistency effects: Actions prior to any form of arrive
* method <a href="package-summary.html#MemoryVisibility">
* <i>happen-before</i></a> a corresponding phase advance and
* onAdvance actions (if present), which in turn <i>happen-before</i>
* actions following the phase advance.
*
* <p><b>Sample usages:</b>
*
* <p>A {@code Phaser} may be used instead of a {@code CountDownLatch}

1 comment on commit eb4a8af

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on eb4a8af Mar 8, 2021

Please sign in to comment.