private static class MonitorDeoptTest.Monitor extends Object
Modifier and Type | Field and Description |
---|---|
private MonitorDeoptTest.State |
state |
Modifier | Constructor and Description |
---|---|
private |
Monitor() |
Modifier and Type | Method and Description |
---|---|
MonitorDeoptTest.State |
getState() |
void |
invalidate(InstalledCode code) |
void |
setState(MonitorDeoptTest.State newState) |
boolean |
tryUpdateState(MonitorDeoptTest.State oldState,
MonitorDeoptTest.State newState) |
void |
waitState(MonitorDeoptTest.State targetState) |
private volatile MonitorDeoptTest.State state
private Monitor()
public void setState(MonitorDeoptTest.State newState)
public boolean tryUpdateState(MonitorDeoptTest.State oldState, MonitorDeoptTest.State newState)
public void waitState(MonitorDeoptTest.State targetState) throws InterruptedException
InterruptedException
public MonitorDeoptTest.State getState()
public void invalidate(InstalledCode code)