The Java VM automatically performs a garbage collection if necessary.
Asking for a garbage collection "on demand" is just that: Asking.
The Java VM may or may not actually perform a garbage collection when you call for it, and the result most of the time isn't exactly what you'd expect it to be.
In summary, the whole purpose of the GC command is questionable at best.
Cheers!
Mike
__________________
'Armor' is a fantasy invented by your C.O. to make you feel better.
|