public class ObjectState extends Object
Modifier and Type | Field and Description |
---|---|
private EscapeObjectState |
cachedState |
(package private) boolean |
copyOnWrite |
static DebugMetric |
CREATE_ESCAPED_OBJECT_STATE |
private boolean |
ensureVirtualized |
private ValueNode[] |
entries |
static DebugMetric |
GET_ESCAPED_OBJECT_STATE |
private LockState |
locks |
private ValueNode |
materializedValue |
Modifier | Constructor and Description |
---|---|
private |
ObjectState(ObjectState other) |
|
ObjectState(ValueNode[] entries,
List<MonitorIdNode> locks,
boolean ensureVirtualized) |
|
ObjectState(ValueNode[] entries,
LockState locks,
boolean ensureVirtualized) |
|
ObjectState(ValueNode materializedValue,
LockState locks,
boolean ensureVirtualized) |
Modifier and Type | Method and Description |
---|---|
void |
addLock(MonitorIdNode monitorId) |
ObjectState |
cloneState() |
EscapeObjectState |
createEscapeObjectState(VirtualObjectNode virtual) |
boolean |
equals(Object obj) |
void |
escape(ValueNode materialized) |
boolean |
getEnsureVirtualized() |
ValueNode[] |
getEntries()
Users of this method are not allowed to change the entries of the returned array.
|
ValueNode |
getEntry(int index) |
LockState |
getLocks() |
ValueNode |
getMaterializedValue() |
int |
hashCode() |
boolean |
hasLocks() |
boolean |
isVirtual() |
boolean |
locksEqual(ObjectState other) |
MonitorIdNode |
removeLock() |
void |
setEnsureVirtualized(boolean ensureVirtualized) |
void |
setEntry(int index,
ValueNode value) |
ObjectState |
share() |
String |
toString() |
void |
updateMaterializedValue(ValueNode value) |
public static final DebugMetric CREATE_ESCAPED_OBJECT_STATE
public static final DebugMetric GET_ESCAPED_OBJECT_STATE
private ValueNode materializedValue
private boolean ensureVirtualized
private EscapeObjectState cachedState
boolean copyOnWrite
public ObjectState(ValueNode[] entries, List<MonitorIdNode> locks, boolean ensureVirtualized)
public ObjectState(ValueNode[] entries, LockState locks, boolean ensureVirtualized)
public ObjectState(ValueNode materializedValue, LockState locks, boolean ensureVirtualized)
private ObjectState(ObjectState other)
public ObjectState cloneState()
public EscapeObjectState createEscapeObjectState(VirtualObjectNode virtual)
public boolean isVirtual()
public ValueNode[] getEntries()
public ValueNode getMaterializedValue()
public void updateMaterializedValue(ValueNode value)
public void addLock(MonitorIdNode monitorId)
public MonitorIdNode removeLock()
public boolean hasLocks()
public boolean locksEqual(ObjectState other)
public void setEnsureVirtualized(boolean ensureVirtualized)
public boolean getEnsureVirtualized()
public ObjectState share()