# | Line 385 | Line 385 | public class Phaser { | |
---|---|---|
385 | else if (parties != 0) // wait for onAdvance | |
386 | root.internalAwaitAdvance(phase, null); | |
387 | else { // 1st registration of child | |
388 | < | synchronized(this) { // register parent first |
388 | > | synchronized (this) { // register parent first |
389 | if (reconcileState() == s) { // recheck under lock | |
390 | parent.doRegister(1); // OK if throws IllegalState | |
391 | for (;;) { // simpler form of outer loop |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |