406 |
|
int unarrived = counts & UNARRIVED_MASK; |
407 |
|
if (registrations > MAX_PARTIES - parties) |
408 |
|
throw new IllegalStateException(badRegister(s)); |
409 |
< |
else if ((phase = (int)(s >>> PHASE_SHIFT)) < 0) |
409 |
> |
phase = (int)(s >>> PHASE_SHIFT); |
410 |
> |
if (phase < 0) |
411 |
|
break; |
412 |
< |
else if (counts != EMPTY) { // not 1st registration |
412 |
> |
if (counts != EMPTY) { // not 1st registration |
413 |
|
if (parent == null || reconcileState() == s) { |
414 |
|
if (unarrived == 0) // wait out advance |
415 |
|
root.internalAwaitAdvance(phase, null); |