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

public Class Page

extends Object
Class Inheritance

A class representing an arbitrary-sized page which can be linked into a list. Used by the PageCache.

Field Summary

Modifier and TypeField and Description
private long
private byte[]
private Page
private Page
private long

Constructor Summary

AccessConstructor and Description
public
Page(long baseAddress, byte[] data)

The length of the data[] array implicitly defines the size of the page.

public
Page(long baseAddress, long unmappedPageLength)

This constructor creates an "unmapped" page of the specified length.

Method Summary

Modifier and TypeMethod and Description
public long
public boolean
getBoolean(long address)

public byte
getByte(long address)

public char
getChar(long address, boolean bigEndian)

public void
getData(long startAddress, long numBytes, int[] destBuf, long destBufOffset)

Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page.

public void
getDataAsBytes(long startAddress, long numBytes, byte[] destBuf, long destBufOffset)

Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page.

public double
getDouble(long address, boolean bigEndian)

public float
getFloat(long address, boolean bigEndian)

public int
getInt(long address, boolean bigEndian)

public long
getLong(long address, boolean bigEndian)

public Page
public Page
public short
getShort(long address, boolean bigEndian)

public long
public boolean
isMapped()

Indicates whether this page is mapped in the remote process's address space

public void
setNext(Page next)

public void
setPrev(Page prev)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseAddressback to summary
private long baseAddress
databack to summary
private byte[] data
nextback to summary
private Page next
prevback to summary
private Page prev
unmappedPageLengthback to summary
private long unmappedPageLength

Constructor Detail

Pageback to summary
public Page(long baseAddress, byte[] data)

The length of the data[] array implicitly defines the size of the page.

Pageback to summary
public Page(long baseAddress, long unmappedPageLength)

This constructor creates an "unmapped" page of the specified length. Fetches from this page will cause -1 to be inserted into the destination buffer.

Method Detail

getBaseAddressback to summary
public long getBaseAddress()
getBooleanback to summary
public boolean getBoolean(long address)
getByteback to summary
public byte getByte(long address)
getCharback to summary
public char getChar(long address, boolean bigEndian)
getDataback to summary
public void getData(long startAddress, long numBytes, int[] destBuf, long destBufOffset) throws IndexOutOfBoundsException

Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page. There are no guarantees on whether any data was actually fetched if an IndexOutOfBoundsException is thrown. If this page is unmapped, -1 is returned for all addresses on this page.

getDataAsBytesback to summary
public void getDataAsBytes(long startAddress, long numBytes, byte[] destBuf, long destBufOffset) throws IndexOutOfBoundsException

Throws IndexOutOfBoundsException if the number of bytes requested is greater than the page size, or if the start address doesn't fall within the page. There are no guarantees on whether any data was actually fetched if an IndexOutOfBoundsException is thrown. If this page is unmapped, throws a RuntimeException; this should be watched for at higher levels.

getDoubleback to summary
public double getDouble(long address, boolean bigEndian)
getFloatback to summary
public float getFloat(long address, boolean bigEndian)
getIntback to summary
public int getInt(long address, boolean bigEndian)
getLongback to summary
public long getLong(long address, boolean bigEndian)
getNextback to summary
public Page getNext()
getPrevback to summary
public Page getPrev()
getShortback to summary
public short getShort(long address, boolean bigEndian)
getSizeback to summary
public long getSize()
isMappedback to summary
public boolean isMapped()

Indicates whether this page is mapped in the remote process's address space

setNextback to summary
public void setNext(Page next)
setPrevback to summary
public void setPrev(Page prev)