Top Fields Constructors Methods
sun.jvm.hotspot.debugger.windbg

pack-priv Class WindbgOopHandle

extends WindbgAddress
implements OopHandle
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.debugger.OopHandle, sun.jvm.hotspot.debugger.Address
Imports
sun.jvm.hotspot.debugger.*

Field Summary

Inherited from sun.jvm.hotspot.debugger.windbg.WindbgAddress:
addrdebugger

Constructor Summary

AccessConstructor and Description
pack-priv
WindbgOopHandle(WindbgDebugger debugger, long addr)

Method Summary

Modifier and TypeMethod and Description
public Address
addOffsetTo(long offset)

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.addOffsetTo.

Implements sun.jvm.hotspot.debugger.Address.addOffsetTo.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle, because interior object pointers are not allowed.

public Address
andWithMask(long mask)

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.andWithMask.

Implements sun.jvm.hotspot.debugger.Address.andWithMask.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle.

public boolean
equals(Object
the reference object with which to compare.
arg
)

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.equals.

Implements sun.jvm.hotspot.debugger.Address.equals.

This is stated explicitly here because it is important for implementations to understand that equals() and hashCode() must absolutely, positively work properly -- i.e., two Address objects representing the same address are both equal (via equals()) and have the same hash code.

public Address
orWithMask(long mask)

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.orWithMask.

Implements sun.jvm.hotspot.debugger.Address.orWithMask.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle.

public Address
xorWithMask(long mask)

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.xorWithMask.

Implements sun.jvm.hotspot.debugger.Address.xorWithMask.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle.

Inherited from sun.jvm.hotspot.debugger.windbg.WindbgAddress:
addOffsetToAsOopHandleasLongValuegetAddressAtgetCIntegerAtgetCompKlassAddressAtgetCompOopAddressAtgetCompOopHandleAtgetJBooleanAtgetJByteAtgetJCharAtgetJDoubleAtgetJFloatAtgetJIntAtgetJLongAtgetJShortAtgetOopHandleAtgreaterThangreaterThanOrEqualhashCodelessThanlessThanOrEqualmainminussetAddressAtsetCIntegerAtsetJBooleanAtsetJByteAtsetJCharAtsetJDoubleAtsetJFloatAtsetJIntAtsetJLongAtsetJShortAtsetOopHandleAttoString

Constructor Detail

WindbgOopHandleback to summary
pack-priv WindbgOopHandle(WindbgDebugger debugger, long addr)

Method Detail

addOffsetToback to summary
public Address addOffsetTo(long offset) throws UnsupportedOperationException

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.addOffsetTo.

Implements sun.jvm.hotspot.debugger.Address.addOffsetTo.

Doc from sun.jvm.hotspot.debugger.Address.addOffsetTo.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle, because interior object pointers are not allowed. Negative offsets are allowed and handle the subtraction case.

andWithMaskback to summary
public Address andWithMask(long mask) throws UnsupportedOperationException

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.andWithMask.

Implements sun.jvm.hotspot.debugger.Address.andWithMask.

Doc from sun.jvm.hotspot.debugger.Address.andWithMask.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle. Performs a logical "and" operation of the bits of the address and the mask (least significant bits of the Address and the mask are aligned) and returns the result as an Address. Returns null if the result was zero.

equalsback to summary
public boolean equals(Object arg)

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.equals.

Implements sun.jvm.hotspot.debugger.Address.equals.

Doc from sun.jvm.hotspot.debugger.Address.equals.

This is stated explicitly here because it is important for implementations to understand that equals() and hashCode() must absolutely, positively work properly -- i.e., two Address objects representing the same address are both equal (via equals()) and have the same hash code.

Parameters
arg:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

orWithMaskback to summary
public Address orWithMask(long mask) throws UnsupportedOperationException

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.orWithMask.

Implements sun.jvm.hotspot.debugger.Address.orWithMask.

Doc from sun.jvm.hotspot.debugger.Address.orWithMask.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle. Performs a logical "or" operation of the bits of the address and the mask (least significant bits of the Address and the mask are aligned) and returns the result as an Address. Returns null if the result was zero.

xorWithMaskback to summary
public Address xorWithMask(long mask) throws UnsupportedOperationException

Overrides sun.jvm.hotspot.debugger.windbg.WindbgAddress.xorWithMask.

Implements sun.jvm.hotspot.debugger.Address.xorWithMask.

Doc from sun.jvm.hotspot.debugger.Address.xorWithMask.

This throws an UnsupportedOperationException if this address happens to actually be an OopHandle. Performs a logical "exclusive or" operation of the bits of the address and the mask (least significant bits of the Address and the mask are aligned) and returns the result as an Address. Returns null if the result was zero.