APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.utilities

public abstract Class AbstractHeapGraphWriter

extends Object
implements HeapGraphWriter
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.utilities.HeapGraphWriter
Known Direct Subclasses
sun.jvm.hotspot.utilities.HeapGXLWriter, sun.jvm.hotspot.utilities.HeapHprofBinWriter
Imports
java.io.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.gc.shared.OopStorage, sun.jvm.hotspot.oops.*, sun.jvm.hotspot.runtime.*

This is abstract base class for heap graph writers. This class does not assume any file format for the heap graph. It hides heap iteration, object (fields) iteration mechanism from derived classes. This class does not even accept OutputStream etc. so that derived class can construct specific writer/filter from input stream.

Field Summary

Modifier and TypeField and Description
protected String
protected String
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract int
protected void
protected boolean
protected void
protected void
protected void
protected void
protected void
writeClass(Instance instance)

protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
writeJavaThread(JavaThread jt, int index)

protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

javaLangClassback to summary
protected String javaLangClass
javaLangStringback to summary
protected String javaLangString
javaLangThreadback to summary
protected String javaLangThread

Constructor Detail

AbstractHeapGraphWriterback to summary
public AbstractHeapGraphWriter()

Method Detail

calculateOopDumpRecordSizeback to summary
protected abstract int calculateOopDumpRecordSize(Oop oop) throws IOException
handleRuntimeExceptionback to summary
protected void handleRuntimeException(RuntimeException re) throws IOException
isJavaVisibleback to summary
protected boolean isJavaVisible(Oop oop)
writeback to summary
protected void write() throws IOException
writeBooleanFieldback to summary
protected void writeBooleanField(Oop oop, BooleanField field) throws IOException
writeByteFieldback to summary
protected void writeByteField(Oop oop, ByteField field) throws IOException
writeCharFieldback to summary
protected void writeCharField(Oop oop, CharField field) throws IOException
writeClassback to summary
protected void writeClass(Instance instance) throws IOException
writeDoubleFieldback to summary
protected void writeDoubleField(Oop oop, DoubleField field) throws IOException
writeFloatFieldback to summary
protected void writeFloatField(Oop oop, FloatField field) throws IOException
writeGlobalJNIHandleback to summary
protected void writeGlobalJNIHandle(Address handleAddr) throws IOException
writeGlobalJNIHandlesback to summary
protected void writeGlobalJNIHandles() throws IOException
writeHeapFooterback to summary
protected void writeHeapFooter() throws IOException
writeHeapHeaderback to summary
protected void writeHeapHeader() throws IOException
writeHeapRecordEpilogueback to summary
protected void writeHeapRecordEpilogue() throws IOException
writeHeapRecordPrologueback to summary
protected void writeHeapRecordPrologue() throws IOException
writeHeapRecordPrologueback to summary
protected void writeHeapRecordPrologue(int size) throws IOException
writeInstanceback to summary
protected void writeInstance(Instance instance) throws IOException
writeInternalObjectback to summary
protected void writeInternalObject(Oop oop) throws IOException
writeIntFieldback to summary
protected void writeIntField(Oop oop, IntField field) throws IOException
writeJavaThreadback to summary
protected void writeJavaThread(JavaThread jt, int index) throws IOException
writeJavaThreadsback to summary
protected void writeJavaThreads() throws IOException
writeLongFieldback to summary
protected void writeLongField(Oop oop, LongField field) throws IOException
writeObjectback to summary
protected void writeObject(Oop oop) throws IOException
writeObjectArrayback to summary
protected void writeObjectArray(ObjArray array) throws IOException
writeObjectFieldsback to summary
protected void writeObjectFields(final Oop oop) throws IOException
writeObjectFieldsback to summary
protected void writeObjectFields(final InstanceKlass oop) throws IOException
writeObjectFooterback to summary
protected void writeObjectFooter(Oop oop) throws IOException
writeObjectHeaderback to summary
protected void writeObjectHeader(Oop oop) throws IOException
writePrimitiveArrayback to summary
protected void writePrimitiveArray(TypeArray array) throws IOException
writeReferenceFieldback to summary
protected void writeReferenceField(Oop oop, OopField field) throws IOException
writeShortFieldback to summary
protected void writeShortField(Oop oop, ShortField field) throws IOException
writeStickyClassesback to summary
protected void writeStickyClasses() throws IOException
writeStringback to summary
protected void writeString(Instance instance) throws IOException
writeThreadback to summary
protected void writeThread(Instance instance) throws IOException