|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.vm.TraceInterface
public abstract class TraceInterface
Class that supports scanning Objects or Arrays for references during tracing, handling those references, and computing death times
Constructor Summary | |
---|---|
TraceInterface()
|
Method Summary | |
---|---|
abstract Offset |
adjustSlotOffset(boolean isScalar,
ObjectReference src,
Address slot)
This adjusts the offset into an object to reflect what it would look like if the fields were laid out in memory space immediately after the object pointer. |
abstract boolean |
gcEnabled()
Returns true if the VM is ready for a garbage collection. |
abstract Address |
getBootImageLink()
|
abstract Word |
getDeathTime(ObjectReference ref)
|
abstract int |
getHeaderEndOffset()
|
abstract int |
getHeaderSize()
|
abstract ObjectReference |
getLink(ObjectReference ref)
|
abstract Word |
getOID()
|
abstract Word |
getOID(ObjectReference ref)
|
abstract void |
setDeathTime(ObjectReference ref,
Word time_)
|
abstract void |
setLink(ObjectReference ref,
ObjectReference link)
|
abstract void |
setOID(Word oid)
|
abstract Address |
skipOwnFramesAndDump(ObjectReference typeRef)
This skips over the frames added by the tracing algorithm, outputs information identifying the method the containts the "new" call triggering the allocation, and returns the address of the first non-trace, non-alloc stack frame. |
abstract void |
updateDeathTime(ObjectReference obj)
Update an object's death time. |
abstract void |
updateTime(Word time_)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TraceInterface()
Method Detail |
---|
public abstract boolean gcEnabled()
true
if the VM is ready for a garbage collection.
true
if the VM is ready for GC, false
otherwise.public abstract Offset adjustSlotOffset(boolean isScalar, ObjectReference src, Address slot)
isScalar
- If this is a pointer store to a scalar objectsrc
- The address of the source objectslot
- The address within src
into which
the update will be stored
public abstract Address skipOwnFramesAndDump(ObjectReference typeRef)
typeRef
- The type reference (tib) of the object just allocated
public abstract void updateDeathTime(ObjectReference obj)
obj
- the objectpublic abstract void setDeathTime(ObjectReference ref, Word time_)
public abstract void setLink(ObjectReference ref, ObjectReference link)
public abstract void updateTime(Word time_)
public abstract Word getOID(ObjectReference ref)
public abstract Word getDeathTime(ObjectReference ref)
public abstract ObjectReference getLink(ObjectReference ref)
public abstract Address getBootImageLink()
public abstract Word getOID()
public abstract void setOID(Word oid)
public abstract int getHeaderSize()
public abstract int getHeaderEndOffset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |