|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmtk.vm.Barriers
public abstract class Barriers
| Constructor Summary | |
|---|---|
Barriers()
|
|
| Method Summary | |
|---|---|
abstract Word |
performRawReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
Perform the actual read of the read barrier, returning the value as a raw Word. |
abstract void |
performRawWriteInBarrier(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
Perform the actual write of the write barrier, writing the value as a raw Word. |
abstract Word |
performRawWriteInBarrierAtomic(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
Atomically write a reference field of an object or array and return the old value of the reference field. |
abstract ObjectReference |
performReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
Perform the actual read of the read barrier. |
abstract void |
performWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
Perform the actual write of the write barrier. |
abstract ObjectReference |
performWriteInBarrierAtomic(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
Atomically write a reference field of an object or array and return the old value of the reference field. |
abstract void |
setArrayNoBarrier(Object[] dst,
int index,
Object value)
Sets an element of an object array without invoking any write barrier. |
abstract boolean |
tryCompareAndSwapWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference old,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
Attempt an atomic compare and exchange in a write barrier sequence. |
abstract boolean |
tryRawCompareAndSwapWriteInBarrier(ObjectReference ref,
Address slot,
Word rawOld,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
Attempt an atomic compare and exchange in a write barrier sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Barriers()
| Method Detail |
|---|
public abstract void setArrayNoBarrier(Object[] dst,
int index,
Object value)
dst - the destination arrayindex - the index of the element to setvalue - the new value for the element
public abstract void performWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencetarget - The value that the slot will be updated tometaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract void performRawWriteInBarrier(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencerawTarget - The value that the slot will be updated tometaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract ObjectReference performReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencemetaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract Word performRawReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencemetaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract ObjectReference performWriteInBarrierAtomic(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencetarget - The value that the slot will be updated tometaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract Word performRawWriteInBarrierAtomic(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencerawTarget - The raw value that the slot will be updated tometaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract boolean tryCompareAndSwapWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference old,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referenceold - The old reference to be swapped outtarget - The value that the slot will be updated tometaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
public abstract boolean tryRawCompareAndSwapWriteInBarrier(ObjectReference ref,
Address slot,
Word rawOld,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
ref - The object that has the reference fieldslot - The slot that holds the referencerawOld - The old reference to be swapped outrawTarget - The value that the slot will be updated tometaDataA - VM specific meta datametaDataB - VM specific meta datamode - The context in which the write is occuring
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||