public class OVHeap extends GenericSGOIDHeap
GenericHeap.ElementInfoMarker
allocCounts, nextSgoid, sgoids
attributes, elementInfoMarker, internStringsMap, liveBitValue, markQueue, nLiveObjects, pinDownList, vm, weakRefs
Constructor and Description |
---|
OVHeap(Config config,
KernelState ks) |
Modifier and Type | Method and Description |
---|---|
ElementInfo |
get(int ref)
we treat ref <= 0 as NULL reference instead of throwing an exception
|
Memento<Heap> |
getMemento() |
Memento<Heap> |
getMemento(MementoFactory factory) |
ElementInfo |
getModifiable(int ref)
public getter to access modifiable ElementInfos;
|
java.util.Iterator<ElementInfo> |
iterator()
return Iterator for all non-null ElementInfo entries
|
java.lang.Iterable<ElementInfo> |
liveObjects() |
protected void |
remove(int ref)
internal remover used by generic sweep
|
void |
resetVolatiles() |
void |
restoreVolatiles() |
protected void |
set(int index,
ElementInfo ei)
internal setter used during allocation
|
int |
size()
return number of non-null elements
|
getNewElementInfoIndex, getSUTAllocationContext, getSystemAllocationContext, initAllocationContext
addToInternStrings, addToPinDownList, checkConsistency, cleanUpDanglingReferences, cleanupWeakRefs, createArray, createElementInfo, createObject, gc, getArrayClassInfo, hasChanged, initializeStringObject, isAlive, isGcEnabled, isOutOfMemory, mark, markChanged, markFinalizableObjects, markStaticRoot, markThreadRoot, newArray, newInternString, newObject, newString, newString, newSystemArray, newSystemObject, newSystemString, newSystemThrowable, queueMark, registerPinDown, registerWeakReference, releasePinDown, removeFromPinDownList, setGcEnabled, setOutOfMemory, setStored, sweep, unmarkAll
public OVHeap(Config config, KernelState ks)
public int size()
protected void set(int index, ElementInfo ei)
GenericHeap
set
in class GenericHeap
public ElementInfo get(int ref)
get
in interface Heap
get
in class GenericHeap
public ElementInfo getModifiable(int ref)
GenericHeap
getModifiable
in interface Heap
getModifiable
in class GenericHeap
protected void remove(int ref)
GenericHeap
remove
in class GenericHeap
public java.util.Iterator<ElementInfo> iterator()
GenericHeap
iterator
in interface java.lang.Iterable<ElementInfo>
iterator
in class GenericHeap
public java.lang.Iterable<ElementInfo> liveObjects()
liveObjects
in interface Heap
liveObjects
in class GenericHeap
public void resetVolatiles()
resetVolatiles
in interface Heap
resetVolatiles
in class GenericHeap
public void restoreVolatiles()
restoreVolatiles
in interface Heap
restoreVolatiles
in class GenericHeap
public Memento<Heap> getMemento(MementoFactory factory)
getMemento
in interface Heap
getMemento
in class GenericHeap
public Memento<Heap> getMemento()
getMemento
in interface Heap
getMemento
in class GenericHeap