public class ObjectState extends Object
| Modifier and Type | Field and Description |
|---|---|
static CounterKey |
CREATE_ESCAPED_OBJECT_STATE |
static CounterKey |
GET_ESCAPED_OBJECT_STATE |
| Constructor and Description |
|---|
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) |
static int |
checkIllegalValue(ValueNode[] values,
int v) |
static boolean |
checkIllegalValues(ValueNode[] values)
Ensure that if an
illegal value is seen that the previous
value is a double word value, or a primitive in a byte array. |
ObjectState |
cloneState() |
EscapeObjectState |
createEscapeObjectState(DebugContext debug,
MetaAccessExtensionProvider metaAccessExtensionProvider,
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 CounterKey CREATE_ESCAPED_OBJECT_STATE
public static final CounterKey GET_ESCAPED_OBJECT_STATE
public ObjectState(ValueNode[] entries, List<MonitorIdNode> locks, boolean ensureVirtualized)
public ObjectState cloneState()
public static boolean checkIllegalValues(ValueNode[] values)
illegal value is seen that the previous
value is a double word value, or a primitive in a byte array.public static int checkIllegalValue(ValueNode[] values, int v)
public EscapeObjectState createEscapeObjectState(DebugContext debug, MetaAccessExtensionProvider metaAccessExtensionProvider, VirtualObjectNode virtual)
public boolean isVirtual()
public ValueNode[] getEntries()
public ValueNode getEntry(int index)
public ValueNode getMaterializedValue()
public void setEntry(int index,
ValueNode value)
public void escape(ValueNode materialized)
public void updateMaterializedValue(ValueNode value)
public void addLock(MonitorIdNode monitorId)
public MonitorIdNode removeLock()
public LockState getLocks()
public boolean hasLocks()
public boolean locksEqual(ObjectState other)
public void setEnsureVirtualized(boolean ensureVirtualized)
public boolean getEnsureVirtualized()
public ObjectState share()