| The Sun.misc.vm class provides an interface to the memory
management system of the Virtual Machine so that applications
and applets can be informed of the state of memory system.
Memory States :
Green
When the memory state is "Green", the vm has sufficient memory
to run normally.
Yellow
When the memory state is "Yellow", the vm still has sufficient
memory to run, but large allocations may fail, so an application
may wish to free unnecessary resources or make other space saving trade-offs.
Red
When the memory state is Red, the vm is critically low on memory.
All unnecessary memory should be freed and unnecessary applications should exit.
These states are represented with the constants
VM.STATE_GREEN, VM.STATE_YELLOW, and VM.STATE_RED.
Compatibility
Some PersonalJava implementations support the Sun.misc.vm class.
It is not supported in the J2SE.
|