|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmtk.vm.Barriers
org.jikesrvm.mm.mmtk.Barriers
public class Barriers
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Barriers()
|
|
| Method Summary | |
|---|---|
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. |
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. |
Word |
performRawWriteInBarrierAtomic(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
Atomically write a raw reference field of an object or array and return the old value of the reference field. |
ObjectReference |
performReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
Perform the actual read of the read barrier. |
void |
performWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
Perform the actual write of the write barrier. |
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. |
void |
setArrayNoBarrier(Object[] dst,
int index,
Object value)
Sets an element of an object array without invoking any write barrier. |
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. |
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 final void performWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
performWriteInBarrier in class Barriersref - The object that has the reference fieldslot - The slot that holds the referencetarget - The value that the slot will be updated tometaDataA - The offset from the refmetaDataB - The index of the FieldReferencemode - The context in which the write is occuring
public final void performRawWriteInBarrier(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
performRawWriteInBarrier in class Barriersref - The object that has the reference fieldslot - The slot that holds the referencerawTarget - The value that the slot will be updated tometaDataA - The offset from the refmetaDataB - The index of the FieldReferencemode - The context in which the write is occuring
public final ObjectReference performReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
performReadInBarrier in class Barriersref - The object that has the reference fieldslot - The slot that holds the referencemetaDataA - The offset from the refmetaDataB - The index of the FieldReferencemode - The context in which the write is occuring
public final Word performRawReadInBarrier(ObjectReference ref,
Address slot,
Word metaDataA,
Word metaDataB,
int mode)
performRawReadInBarrier in class Barriersref - The object that has the reference fieldslot - The slot that holds the referencemetaDataA - The offset from the refmetaDataB - The index of the FieldReferencemode - The context in which the write is occuring
public final ObjectReference performWriteInBarrierAtomic(ObjectReference ref,
Address slot,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
performWriteInBarrierAtomic in class Barriersref - The object that has the reference fieldslot - The slot that holds the referencetarget - The value that the slot will be updated tometaDataA - The offset from the refmetaDataB - Unusedmode - The context in which the write is occuring
public final Word performRawWriteInBarrierAtomic(ObjectReference ref,
Address slot,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
performRawWriteInBarrierAtomic in class Barriersref - The object that has the reference fieldslot - The slot that holds the referencerawTarget - The value that the slot will be updated tometaDataA - The offset from the refmetaDataB - Unusedmode - The context in which the write is occuring
public final boolean tryCompareAndSwapWriteInBarrier(ObjectReference ref,
Address slot,
ObjectReference old,
ObjectReference target,
Word metaDataA,
Word metaDataB,
int mode)
tryCompareAndSwapWriteInBarrier in class Barriersref - 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 - The offset from the refmetaDataB - Unusedmode - The context in which the write is occuring
public final boolean tryRawCompareAndSwapWriteInBarrier(ObjectReference ref,
Address slot,
Word rawOld,
Word rawTarget,
Word metaDataA,
Word metaDataB,
int mode)
tryRawCompareAndSwapWriteInBarrier in class Barriersref - 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 - The offset from the refmetaDataB - Unusedmode - The context in which the write is occuring
public final void setArrayNoBarrier(Object[] dst,
int index,
Object value)
setArrayNoBarrier in class Barriersdst - the destination arrayindex - the index of the element to setvalue - the new value for the element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||