|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.GarbageCollector com.sun.squawk.Lisp2GenerationalCollector
public final class Lisp2GenerationalCollector
A collector based on the lisp 2 algorithm described in "Garbage Collection : Algorithms for Automatic Dynamic Memory Management" by Richard Jones, Rafael Lins.
<-------------- (W-C-2) ---------> <------ C ------> <-2-> +----------------------------------+-----------------+-----+ | forwarding offset | class offset | tag | +----------------------------------+-----------------+-----+ <--------------------------- w --------------------------> <-- sliceOffsetShift ->
memoryEnd -> Slice table Bitmap Fixed marking stack heapEnd -> --+ | Unused heap (except as extra marking stack) | | youngGenerationEnd -> | | Young Generation | | youngGenerationStart -> | Covered by bitmap | Old Generation | | heapStart -> | | {unused space to align heapStart for bitmap} | | memoryStart -> | | Permanent space | | permanentMemoryStart -> --+
Field Summary |
---|
Fields inherited from class com.sun.squawk.GarbageCollector |
---|
NATIVE_GC_ONLY |
Method Summary | |
---|---|
int |
getIdealYoungGenerationSize()
Gets a size for the young generation based on its ideal ratio to the heap size. |
int |
getYoungGenerationSize()
Gets the actual size (in bytes) of the young generation based on the current start address of the young generation, the ideal young generation size and the remaining amount of free memory in the heap. |
void |
setIdealYoungGenerationSizePercent(int ygPct)
Sets the size for the young generation based on its ideal ratio to the heap size. |
Methods inherited from class com.sun.squawk.GarbageCollector |
---|
getBytesAllocatedSinceLastGC, getBytesAllocatedTotal, getBytesFreedTotal, getBytesLastFreed, getBytesLastScanned, getLastGCTime, getMaxFullGCTime, getMaxGCTime, getMaxPartialGCTime, getTotalFullGCTime, getTotalGCTime, getTotalPartialGCTime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getIdealYoungGenerationSize()
public int getYoungGenerationSize()
public void setIdealYoungGenerationSizePercent(int ygPct)
ygPct
- the new young generation percent
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |