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

public Class ProgressiveHeapVisitor

extends Object
implements HeapVisitor
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.oops.HeapVisitor
Imports
sun.jvm.hotspot.memory.*, sun.jvm.hotspot.oops.*

This class wraps a user's chosen HeapVisitor with the functionality that a chosen "thunk" is called periodically during the heap traversal. This allows a progress bar to be displayed during long heap scans.

Field Summary

Modifier and TypeField and Description
private double
private static double
private HeapProgressThunk
private long
private HeapVisitor
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lastNotificationFractionback to summary
private double lastNotificationFraction
MINIMUM_NOTIFICATION_FRACTIONback to summary
private static double MINIMUM_NOTIFICATION_FRACTION
thunkback to summary
private HeapProgressThunk thunk
usedSizeback to summary
private long usedSize
userHeapVisitorback to summary
private HeapVisitor userHeapVisitor
visitedSizeback to summary
private long visitedSize

Constructor Detail

ProgressiveHeapVisitorback to summary
public ProgressiveHeapVisitor(HeapVisitor userHeapVisitor, HeapProgressThunk thunk)

Method Detail

doObjback to summary
public boolean doObj(Oop obj)

Implements sun.jvm.hotspot.oops.HeapVisitor.doObj.

epilogueback to summary
public void epilogue()

Implements sun.jvm.hotspot.oops.HeapVisitor.epilogue.

prologueback to summary
public void prologue(long usedSize)

Implements sun.jvm.hotspot.oops.HeapVisitor.prologue.