public abstract class MetaspacePointer extends Object
Constructor and Description |
---|
MetaspacePointer() |
Modifier and Type | Method and Description |
---|---|
abstract Pointer |
asWord() |
abstract void |
initializeLong(int offset,
long val,
LocationIdentity locationIdentity)
Initializes the memory at address
(this + offset) . |
abstract void |
initializeLong(WordBase offset,
long val,
LocationIdentity locationIdentity)
Initializes the memory at address
(this + offset) . |
abstract boolean |
isNull() |
abstract byte |
readByte(int offset)
Reads the memory at address
(this + offset) . |
abstract byte |
readByte(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract byte |
readByte(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract byte |
readByte(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract char |
readChar(int offset)
Reads the memory at address
(this + offset) . |
abstract char |
readChar(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract char |
readChar(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract char |
readChar(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract double |
readDouble(int offset)
Reads the memory at address
(this + offset) . |
abstract double |
readDouble(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract double |
readDouble(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract double |
readDouble(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract float |
readFloat(int offset)
Reads the memory at address
(this + offset) . |
abstract float |
readFloat(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract float |
readFloat(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract float |
readFloat(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract int |
readInt(int offset)
Reads the memory at address
(this + offset) . |
abstract int |
readInt(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract int |
readInt(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract int |
readInt(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract long |
readLong(int offset)
Reads the memory at address
(this + offset) . |
abstract long |
readLong(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract long |
readLong(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract long |
readLong(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract Object |
readObject(int offset)
Reads the memory at address
(this + offset) . |
abstract Object |
readObject(int offset,
HeapAccess.BarrierType barrierType)
Reads the memory at address
(this + offset) . |
abstract Object |
readObject(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract Object |
readObject(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract Object |
readObject(WordBase offset,
HeapAccess.BarrierType barrierType)
Reads the memory at address
(this + offset) . |
abstract Object |
readObject(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract short |
readShort(int offset)
Reads the memory at address
(this + offset) . |
abstract short |
readShort(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract short |
readShort(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract short |
readShort(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract Word |
readWord(int offset)
Reads the memory at address
(this + offset) . |
abstract Word |
readWord(int offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract Word |
readWord(WordBase offset)
Reads the memory at address
(this + offset) . |
abstract Word |
readWord(WordBase offset,
LocationIdentity locationIdentity)
Reads the memory at address
(this + offset) . |
abstract void |
writeByte(int offset,
byte val)
Writes the memory at address
(this + offset) . |
abstract void |
writeByte(int offset,
byte val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeByte(WordBase offset,
byte val)
Writes the memory at address
(this + offset) . |
abstract void |
writeByte(WordBase offset,
byte val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeChar(int offset,
char val)
Writes the memory at address
(this + offset) . |
abstract void |
writeChar(int offset,
char val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeChar(WordBase offset,
char val)
Writes the memory at address
(this + offset) . |
abstract void |
writeChar(WordBase offset,
char val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeDouble(int offset,
double val)
Writes the memory at address
(this + offset) . |
abstract void |
writeDouble(int offset,
double val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeDouble(WordBase offset,
double val)
Writes the memory at address
(this + offset) . |
abstract void |
writeDouble(WordBase offset,
double val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeFloat(int offset,
float val)
Writes the memory at address
(this + offset) . |
abstract void |
writeFloat(int offset,
float val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeFloat(WordBase offset,
float val)
Writes the memory at address
(this + offset) . |
abstract void |
writeFloat(WordBase offset,
float val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeInt(int offset,
int val)
Writes the memory at address
(this + offset) . |
abstract void |
writeInt(int offset,
int val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeInt(WordBase offset,
int val)
Writes the memory at address
(this + offset) . |
abstract void |
writeInt(WordBase offset,
int val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeLong(int offset,
long val)
Writes the memory at address
(this + offset) . |
abstract void |
writeLong(int offset,
long val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeLong(WordBase offset,
long val)
Writes the memory at address
(this + offset) . |
abstract void |
writeLong(WordBase offset,
long val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeObject(int offset,
Object val)
Writes the memory at address
(this + offset) . |
abstract void |
writeObject(int offset,
Object val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeObject(WordBase offset,
Object val)
Writes the memory at address
(this + offset) . |
abstract void |
writeObject(WordBase offset,
Object val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeShort(int offset,
short val)
Writes the memory at address
(this + offset) . |
abstract void |
writeShort(int offset,
short val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeShort(WordBase offset,
short val)
Writes the memory at address
(this + offset) . |
abstract void |
writeShort(WordBase offset,
short val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeWord(int offset,
WordBase val)
Writes the memory at address
(this + offset) . |
abstract void |
writeWord(int offset,
WordBase val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
abstract void |
writeWord(WordBase offset,
WordBase val)
Writes the memory at address
(this + offset) . |
abstract void |
writeWord(WordBase offset,
WordBase val,
LocationIdentity locationIdentity)
Writes the memory at address
(this + offset) . |
public MetaspacePointer()
public abstract boolean isNull()
public abstract byte readByte(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract char readChar(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract short readShort(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract int readInt(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract long readLong(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract float readFloat(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract double readDouble(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract Word readWord(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract Object readObject(WordBase offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract byte readByte(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract char readChar(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract short readShort(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract int readInt(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract long readLong(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract float readFloat(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract double readDouble(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract Word readWord(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract Object readObject(int offset, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the readpublic abstract void writeByte(WordBase offset, byte val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeChar(WordBase offset, char val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeShort(WordBase offset, short val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeInt(WordBase offset, int val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeLong(WordBase offset, long val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeFloat(WordBase offset, float val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeDouble(WordBase offset, double val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeWord(WordBase offset, WordBase val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void initializeLong(WordBase offset, long val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset
are in bytes. The memory must be uninitialized or zero prior to this operation.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeObject(WordBase offset, Object val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeByte(int offset, byte val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeChar(int offset, char val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeShort(int offset, short val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeInt(int offset, int val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeLong(int offset, long val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeFloat(int offset, float val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeDouble(int offset, double val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeWord(int offset, WordBase val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void initializeLong(int offset, long val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset
are in bytes. The memory must be uninitialized or zero prior to this operation.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract void writeObject(int offset, Object val, LocationIdentity locationIdentity)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesslocationIdentity
- the identity of the writeval
- the value to be written to memorypublic abstract byte readByte(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract char readChar(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract short readShort(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract int readInt(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract long readLong(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract float readFloat(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract double readDouble(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract Word readWord(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract Object readObject(WordBase offset)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accesspublic abstract Object readObject(WordBase offset, HeapAccess.BarrierType barrierType)
(this + offset)
. This access will decompress the oop if
the VM uses compressed oops, and it can be parameterized to allow read barriers (G1 referent
field).
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessbarrierType
- the type of the read barrier to be addedpublic abstract byte readByte(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract char readChar(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract short readShort(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract int readInt(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract long readLong(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract float readFloat(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract double readDouble(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract Word readWord(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract Object readObject(int offset)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accesspublic abstract Object readObject(int offset, HeapAccess.BarrierType barrierType)
(this + offset)
. This access will decompress the oop if
the VM uses compressed oops, and it can be parameterized to allow read barriers (G1 referent
field).offset
- the signed offset for the memory accessbarrierType
- the type of the read barrier to be addedpublic abstract void writeByte(WordBase offset, byte val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeChar(WordBase offset, char val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeShort(WordBase offset, short val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeInt(WordBase offset, int val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeLong(WordBase offset, long val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeFloat(WordBase offset, float val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeDouble(WordBase offset, double val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeWord(WordBase offset, WordBase val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeObject(WordBase offset, Object val)
(this + offset)
. Both the base address and offset are in
bytes.
The offset is always treated as a Signed
value. However, the static type is
WordBase
to avoid the frequent casts to of Unsigned
values (where the caller
knows that the highest-order bit of the unsigned value is never used).
offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeByte(int offset, byte val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeChar(int offset, char val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeShort(int offset, short val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeInt(int offset, int val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeLong(int offset, long val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeFloat(int offset, float val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeDouble(int offset, double val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeWord(int offset, WordBase val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memorypublic abstract void writeObject(int offset, Object val)
(this + offset)
. Both the base address and offset are in
bytes.offset
- the signed offset for the memory accessval
- the value to be written to memory