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

public Class JNIHandleBlock

extends VMObject
Class Inheritance
Imports
java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.types.*, sun.jvm.hotspot.utilities.*, .Observable, .Observer

Field Summary

Modifier and TypeField and Description
private static int
private static Field
private static AddressField
private static CIntegerField
Inherited from sun.jvm.hotspot.runtime.VMObject:
addr

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JNIHandleBlock
blockContainingHandle(Address jniHandle)

Debugging routine only.

public OopHandle
getOopHandle(int x)

private Address
getOopHandleAddress(int x)

Only returns addresses of valid OopHandles

public int
indexOfHandle(Address jniHandle)

Debugging routine: returns the index (0..top() - 1) of the handle in this block, or -1 if the handle was not contained in this block.

private static synchronized void
public JNIHandleBlock
next()

public void
public int
top()

public String
toString()

Overrides sun.jvm.hotspot.runtime.VMObject.toString.

Returns a string representation of the object.

Inherited from sun.jvm.hotspot.runtime.VMObject:
equalsgetAddresshashCode

Field Detail

blockSizeInOopsback to summary
private static int blockSizeInOops
handlesFieldback to summary
private static Field handlesField
nextFieldback to summary
private static AddressField nextField
topFieldback to summary
private static CIntegerField topField

Constructor Detail

JNIHandleBlockback to summary
public JNIHandleBlock(Address addr)

Method Detail

blockContainingHandleback to summary
public JNIHandleBlock blockContainingHandle(Address jniHandle)

Debugging routine only. Returns non-null JNIHandleBlock containing the JNI handle or null if this handle block and its successors did not contain it.

getOopHandleback to summary
public OopHandle getOopHandle(int x)
getOopHandleAddressback to summary
private Address getOopHandleAddress(int x)

Only returns addresses of valid OopHandles

indexOfHandleback to summary
public int indexOfHandle(Address jniHandle)

Debugging routine: returns the index (0..top() - 1) of the handle in this block, or -1 if the handle was not contained in this block. Does not search successor blocks.

initializeback to summary
private static synchronized void initialize(TypeDataBase db)
nextback to summary
public JNIHandleBlock next()
oopsDoback to summary
public void oopsDo(AddressVisitor visitor)
topback to summary
public int top()
toStringback to summary
public String toString()

Overrides sun.jvm.hotspot.runtime.VMObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.