APIdia Launch Partner
Top Description Methods
sun.jvm.hotspot.types.basic

public Interface VtblAccess

Known Direct Implementers
sun.jvm.hotspot.types.basic.BasicVtblAccess
Imports
sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.types.*

This interface is designed to allow a platform-specific implementation of the TypeDataBase.isOfType() method, while leaving the rest of the basic.* package platform independent.

Method Summary

Modifier and TypeMethod and Description
public void
clearCaches()

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

public Address
getVtblForType(Type type)

This is the necessarily platform-specific implementation.

Method Detail

clearCachesback to summary
public void 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)

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.