Class ObjectRecord
java.lang.Object
com.ibm.jvm.dtfjview.heapdump.portable.PortableHeapDumpRecord
com.ibm.jvm.dtfjview.heapdump.portable.ObjectRecord
- Direct Known Subclasses:
LongObjectRecord, MediumObjectRecord, ShortObjectRecord
Object record.
Base class for anything that looks like an object (has a classAddress, a size and a hashcode
in addition to the address, previousAddress and references required to be a PortableHeapDumpRecord).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longprotected final intprotected final booleanFields declared in class PortableHeapDumpRecord
_baseAddress, _gapPreceding, _gapSize, _numberOfReferences, _referenceFieldSize, _references, ADDRESS_SHIFT_SIZE, EIGHT_BYTE_REF, FOUR_BYTE_REF, ONE_BYTE_REF, TWO_BYTE_REFModifier and TypeFieldDescriptionprotected final longAddress diff-addresses are based fromprotected final longprotected final byteprotected intprotected final byteprotected final ReferenceIteratorstatic final intstatic final bytestatic final bytestatic final bytestatic final byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectRecord(long address, long previousAddress, long classAddress, int hashCode, ReferenceIterator references, boolean is32BitHash) -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectRecordgetObjectRecord(long address, long previousAddress, long classAddress, int hashCode, ReferenceIterator references, PortableHeapDumpClassCache cache, boolean is64Bit, boolean is32BitHash) Static factory method to pick the appropriate factory methodprotected static booleanisShortObjectEligible(long current, long previous) Methods declared in class PortableHeapDumpRecord
getAddressDifference, getDifferenceReferences, sizeofReference, writeHeapDump, writeReference, writeReferencesModifier and TypeMethodDescriptionprotected static longgetAddressDifference(long address, long base) protected ReferenceIteratorgetDifferenceReferences(ReferenceIterator input, long base) protected static bytesizeofReference(long reference) protected abstract voidwriteHeapDump(DataOutput out) protected voidwriteReference(DataOutput dos, byte size, long reference) protected final void
-
Field Details
-
_hashCode
protected final int _hashCode -
_classAddress
protected final long _classAddress -
_is32BitHash
protected final boolean _is32BitHash
-
-
Constructor Details
-
ObjectRecord
protected ObjectRecord(long address, long previousAddress, long classAddress, int hashCode, ReferenceIterator references, boolean is32BitHash)
-
-
Method Details
-
isShortObjectEligible
protected static boolean isShortObjectEligible(long current, long previous) -
getObjectRecord
public static ObjectRecord getObjectRecord(long address, long previousAddress, long classAddress, int hashCode, ReferenceIterator references, PortableHeapDumpClassCache cache, boolean is64Bit, boolean is32BitHash) Static factory method to pick the appropriate factory method- Returns:
- ObjectRecord for this object
-