public final class XGCRootInfo extends GCRootInfo
GCRootInfo.Type| Constructor and Description |
|---|
XGCRootInfo(long objectAddress,
long contextAddress,
int type)
Create a record of one GC root.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setContextId(int objectId) |
void |
setObjectId(int objectId) |
getContextAddress, getContextId, getObjectAddress, getObjectId, getType, getTypeAsString, getTypeSetAsStringpublic XGCRootInfo(long objectAddress,
long contextAddress,
int type)
objectAddress - the object being retainedcontextAddress - the object doing the retention such as a threadtype - the type GCRootInfo.Type of the root such as Java local, system class.public void setObjectId(int objectId)
objectId - the objectGCRootInfo.getObjectId()public void setContextId(int objectId)
objectId - GCRootInfo.getContextId()