# HG changeset patch # User dl # Parent 9319e8851e0002c4b07f3b1be3cd29d79c3c165c 8260664: Phaser.arrive() memory consistency effects Reviewed-by: martin diff --git a/src/java.base/share/classes/java/util/concurrent/Phaser.java b/src/java.base/share/classes/java/util/concurrent/Phaser.java --- a/src/java.base/share/classes/java/util/concurrent/Phaser.java +++ b/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. * + *

Memory consistency effects: Actions prior to any form of arrive + * method + * happen-before a corresponding phase advance and + * onAdvance actions (if present), which in turn happen-before + * actions following the phase advance. + * *

Sample usages: * *

A {@code Phaser} may be used instead of a {@code CountDownLatch}