Lines Matching refs:state
56 private volatile State state = State.INITIAL;
59 state = newState;
64 if (state == oldState) {
65 state = newState;
75 while (state != targetState && System.currentTimeMillis() - startTime < TIMEOUT) {
78 if (state != targetState) {
84 * Change the current state to {@link State#ALLOWING_SAFEPOINT} and do a short wait to allow
85 * a safepoint to happen. Then restore the state to the original value.
91 if (state == expectedState) {
92 state = State.ALLOWING_SAFEPOINT;
94 if (state != State.ALLOWING_SAFEPOINT) {
95 throw new InternalError("Other threads can not update the state from ALLOWING_SAFEPOINT: " + state);
97 state = expectedState;
103 return state;
110 state = State.INVALIDATED;