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

public Class LivenessPath

extends Object
Class Inheritance
Imports
java.io.*, java.util.*, sun.jvm.hotspot.oops.*

Describes a path from an object back to the root which is keeping it alive. Elements of the path are (object, field) pairs, where the object is expressed as a sun.jvm.hotspot.oops.Oop, and where the field is expressed as a sun.jvm.hotspot.oops.FieldIdentifier. If the element reflects a root, the Oop will be null. If the element is the end of the path, the FieldIdentifier will be null.

Field Summary

Modifier and TypeField and Description
private Stack<LivenessPathElement>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv LivenessPath
copy()

public LivenessPathElement
get(int index)

Fetch the element at the given index; 0-based

pack-priv boolean
isComplete()

Indicates whether this path is "complete", i.e., whether the last element is a root.

pack-priv LivenessPathElement
peek()

pack-priv void
pop()

public void
pack-priv void
public int
size()

Number of elements in the path

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

stackback to summary
private Stack<LivenessPathElement> stack

Constructor Detail

LivenessPathback to summary
pack-priv LivenessPath()

Method Detail

copyback to summary
pack-priv LivenessPath copy()
getback to summary
public LivenessPathElement get(int index) throws ArrayIndexOutOfBoundsException

Fetch the element at the given index; 0-based

isCompleteback to summary
pack-priv boolean isComplete()

Indicates whether this path is "complete", i.e., whether the last element is a root. Convenience routine for LivenessAnalysis.

peekback to summary
pack-priv LivenessPathElement peek()
popback to summary
pack-priv void pop()
printOnback to summary
public void printOn(PrintStream tty)
pushback to summary
pack-priv void push(LivenessPathElement el)
sizeback to summary
public int size()

Number of elements in the path