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

public Class CompiledVFrame

extends JavaVFrame
Class Inheritance
Imports
java.util.*, sun.jvm.hotspot.code.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.oops.*, sun.jvm.hotspot.utilities.*

FIXME: missing many accessors; all we have right now is the method and BCI. NOTE that this has been modified from the VM's version to handle NULL ScopeDescs for the debugging case. This simplifies using code a great deal.

Field Summary

Modifier and TypeField and Description
private boolean
private ScopeDesc

Constructor Summary

AccessConstructor and Description
public
CompiledVFrame(Frame fr, RegisterMap regMap, JavaThread thread, ScopeDesc scope, boolean mayBeImprecise)

Method Summary

Modifier and TypeMethod and Description
private StackValue
public int
public NMethod
getCode()

Returns the active method

public NMethod
getCodeUnsafe()

Returns the active method.

public StackValueCollection
public StackValueCollection
public Method
public List<MonitorInfo>
public int
getRawBCI()

Returns SynchronizationEntryBCI or bci() (used for synchronization)

public ScopeDesc
getScope()

Returns the ScopeDesc

public boolean
public boolean
public boolean
isTop()

Overrides sun.jvm.hotspot.runtime.VFrame.isTop.

Answers if the this is the top vframe in the frame, i.e., if the sender vframe is in the caller frame

public boolean
mayBeImpreciseDbg()

Overrides sun.jvm.hotspot.runtime.VFrame.mayBeImpreciseDbg.

An indication of whether this VFrame is "precise" or a best guess.

private BasicLock
public VFrame
sender()

Overrides sun.jvm.hotspot.runtime.VFrame.sender.

Returns the sender vframe

public VFrame
sender(boolean mayBeImprecise)

Overrides sun.jvm.hotspot.runtime.VFrame.sender.

Returns the sender vframe; takes argument for debugging situation

Inherited from sun.jvm.hotspot.runtime.JavaVFrame:
equalshashCodeisJavaFrameprintprintActivationprintActivationOnprintLockedObjectClassNameprintLockInfoprintOnstructuralCompareverify

Field Detail

mayBeImpreciseback to summary
private boolean mayBeImprecise
scopeback to summary
private ScopeDesc scope

Constructor Detail

CompiledVFrameback to summary
public CompiledVFrame(Frame fr, RegisterMap regMap, JavaThread thread, ScopeDesc scope, boolean mayBeImprecise)

Method Detail

createStackValueback to summary
private StackValue createStackValue(ScopeValue sv)
getBCIback to summary
public int getBCI()

Implements abstract sun.jvm.hotspot.runtime.JavaVFrame.getBCI.

getCodeback to summary
public NMethod getCode()

Returns the active method

getCodeUnsafeback to summary
public NMethod getCodeUnsafe()

Returns the active method. Does not perform a guarantee regarding unloaded methods -- more suitable for debugging system.

getExpressionsback to summary
public StackValueCollection getExpressions()

Implements abstract sun.jvm.hotspot.runtime.JavaVFrame.getExpressions.

getLocalsback to summary
public StackValueCollection getLocals()

Implements abstract sun.jvm.hotspot.runtime.JavaVFrame.getLocals.

getMethodback to summary
public Method getMethod()

Implements abstract sun.jvm.hotspot.runtime.JavaVFrame.getMethod.

Doc from sun.jvm.hotspot.runtime.JavaVFrame.getMethod.

JVM state

getMonitorsback to summary
public List<MonitorInfo> getMonitors()

Implements abstract sun.jvm.hotspot.runtime.JavaVFrame.getMonitors.

getRawBCIback to summary
public int getRawBCI()

Returns SynchronizationEntryBCI or bci() (used for synchronization)

getScopeback to summary
public ScopeDesc getScope()

Returns the ScopeDesc

isCompiledFrameback to summary
public boolean isCompiledFrame()

Overrides sun.jvm.hotspot.runtime.VFrame.isCompiledFrame.

isDeoptimizedback to summary
public boolean isDeoptimized()

Overrides sun.jvm.hotspot.runtime.VFrame.isDeoptimized.

isTopback to summary
public boolean isTop()

Overrides sun.jvm.hotspot.runtime.VFrame.isTop.

Doc from sun.jvm.hotspot.runtime.VFrame.isTop.

Answers if the this is the top vframe in the frame, i.e., if the sender vframe is in the caller frame

mayBeImpreciseDbgback to summary
public boolean mayBeImpreciseDbg()

Overrides sun.jvm.hotspot.runtime.VFrame.mayBeImpreciseDbg.

Doc from sun.jvm.hotspot.runtime.VFrame.mayBeImpreciseDbg.

An indication of whether this VFrame is "precise" or a best guess. This is used in the debugging system to handle the top frame on the stack, which, since the system will in general not be at a safepoint, has to make some guesses about exactly where in the execution it is. Any debugger should indicate to the user that the information for this frame may not be 100% correct. FIXME: may need to move this up into VFrame instead of keeping it in CompiledVFrame.

resolveMonitorLockback to summary
private BasicLock resolveMonitorLock(Location location)
senderback to summary
public VFrame sender()

Overrides sun.jvm.hotspot.runtime.VFrame.sender.

Returns the sender vframe

senderback to summary
public VFrame sender(boolean mayBeImprecise)

Overrides sun.jvm.hotspot.runtime.VFrame.sender.

Doc from sun.jvm.hotspot.runtime.VFrame.sender.

Returns the sender vframe; takes argument for debugging situation