--- old/src/java.base/share/classes/java/util/concurrent/Phaser.java 2021-02-09 06:27:11.295635661 -0800 +++ new/src/java.base/share/classes/java/util/concurrent/Phaser.java 2021-02-09 06:27:10.995637965 -0800 @@ -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}