Robin Garner wrote:
GC is triggered in two cases: 1) the user code calls System.gc(). 2) the heap fills up (for some suitable definition of 'fills up'). There is never any need for the VM code to call the garbage collector.
Off tanget, but IMHO this is not strictly true: it depends on whether VM native code relies on finalize() to free up its (non-heap) memory. Here's an exmaple of this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4797189 -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com