Top Fields Constructors Methods
sun.jvm.hotspot.types.basic

public abstract Class BasicVtblAccess

extends Object
implements VtblAccess
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.types.basic.VtblAccess
Known Direct Subclasses
sun.jvm.hotspot.BsdVtblAccess, sun.jvm.hotspot.LinuxVtblAccess, sun.jvm.hotspot.Win32VtblAccess
Imports
java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.types.*

Field Summary

Modifier and TypeField and Description
protected String[]
pack-priv static Object
protected SymbolLookup
private Map<Type, Object>

Constructor Summary

AccessConstructor and Description
public
BasicVtblAccess(SymbolLookup symbolLookup, String[] dllNames)

Method Summary

Modifier and TypeMethod and Description
public void
clearCaches()

Implements sun.jvm.hotspot.types.basic.VtblAccess.clearCaches.

Clear any cached values from symbol lookups in the target process.

public Address
getVtblForType(Type type)

Implements sun.jvm.hotspot.types.basic.VtblAccess.getVtblForType.

This is the necessarily platform-specific implementation.

protected abstract String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dllNamesback to summary
protected String[] dllNames
nullAddressback to summary
pack-priv static Object nullAddress
symbolLookupback to summary
protected SymbolLookup symbolLookup
typeToVtblMapback to summary
private Map<Type, Object> typeToVtblMap

Constructor Detail

BasicVtblAccessback to summary
public BasicVtblAccess(SymbolLookup symbolLookup, String[] dllNames)

Method Detail

clearCachesback to summary
public void clearCaches()

Implements sun.jvm.hotspot.types.basic.VtblAccess.clearCaches.

Doc from sun.jvm.hotspot.types.basic.VtblAccess.clearCaches.

Clear any cached values from symbol lookups in the target process. It is important that this mechanism be fast and for that reason the default implementation memoizes type-to-vtbl mappings. However, if the target process is resumed, these mappings may become invalid.

getVtblForTypeback to summary
public Address getVtblForType(Type type)

Implements sun.jvm.hotspot.types.basic.VtblAccess.getVtblForType.

Doc from sun.jvm.hotspot.types.basic.VtblAccess.getVtblForType.

This is the necessarily platform-specific implementation. Attempt to return the address of the vtbl for the given polymorphic C++ type. This value will be used when searching nearby memory to implement isOfType() in as platform-independent a manner as possible. Returns null if this value was not available for the given type, which might indicate that the type was not polymorphic or that an error occurred while trying to find the symbol. Note that this method does not support multiple inheritance.

vtblSymbolForTypeback to summary
protected abstract String vtblSymbolForType(Type type)