public class OVHeap extends GenericSGOIDHeap
GenericHeap.ElementInfoMarkerallocCounts, nextSgoid, sgoidselementInfoMarker, internStrings, liveBitValue, markQueue, 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;
|
Iterator<ElementInfo> |
iterator()
return Iterator for all non-null ElementInfo entries
|
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, initAllocationContextaddToInternStrings, addToPinDownList, checkConsistency, cleanUpDanglingReferences, cleanupWeakRefs, createArray, createElementInfo, createObject, gc, getArrayClassInfo, hasChanged, initializeStringObject, isAlive, isGcEnabled, isOutOfMemory, mark, markChanged, markStaticRoot, markThreadRoot, newArray, newInternString, newObject, newString, newString, newSystemArray, newSystemObject, newSystemString, newSystemThrowable, queueMark, registerPinDown, registerWeakReference, releasePinDown, removeFromPinDownList, setGcEnabled, setOutOfMemory, setStored, sweep, unmarkAllpublic OVHeap(Config config, KernelState ks)
public int size()
protected void set(int index,
ElementInfo ei)
GenericHeapset in class GenericHeappublic ElementInfo get(int ref)
get in interface Heapget in class GenericHeappublic ElementInfo getModifiable(int ref)
GenericHeapgetModifiable in interface HeapgetModifiable in class GenericHeapprotected void remove(int ref)
GenericHeapremove in class GenericHeappublic Iterator<ElementInfo> iterator()
GenericHeapiterator in interface Iterable<ElementInfo>iterator in class GenericHeappublic Iterable<ElementInfo> liveObjects()
liveObjects in interface HeapliveObjects in class GenericHeappublic void resetVolatiles()
resetVolatiles in interface HeapresetVolatiles in class GenericHeappublic void restoreVolatiles()
restoreVolatiles in interface HeaprestoreVolatiles in class GenericHeappublic Memento<Heap> getMemento(MementoFactory factory)
getMemento in interface HeapgetMemento in class GenericHeappublic Memento<Heap> getMemento()
getMemento in interface HeapgetMemento in class GenericHeap