|
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.GC
public class GC
Pure static class that handles object creation and GC control and monitoring.
The particular GC implementation used is a subclass of GarbageCollector
. Many of
the "public" methods of this class are actually "suite-private". See the file "squawk.library.properties"
for the list of exported methods.
Method Summary | |
---|---|
static long |
freeMemory()
Returns the amount of free memory in the system. |
static GarbageCollector |
getCollector()
Gets a reference to the installed collector. |
static int |
getFullCount()
Returns the number of full-heap collections. |
static int |
getPartialCount()
Returns the number of partial-heap collections. |
static int |
getTotalCount()
Returns the total number of garbage collections that have been performed by the VM. |
static long |
totalMemory()
Returns the total amount of RAM memory in the Squawk Virtual Machine. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long freeMemory()
gc
method may result in increasing the value returned by freeMemory.
public static GarbageCollector getCollector()
public static int getFullCount()
public static int getPartialCount()
public static int getTotalCount()
public static long totalMemory()
Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |