3 ms·
But regular GCs DO run at the end of the program, so my question was, why don't they just skip the final cleanup.
by mike_hock 7y ago
But regular GCs DO run at the end of the program, so my question was, why don't they just skip the final cleanup.
- chrisseaton 7y ago> But regular GCs DO run at the end of the program Which GCs do that? I'm not aware of any.
- balfirevic 7y agoThe article (apparently falsely) claims that default JVM GC does that: "Short-running programs, like all programs, invoke the garbage collector at the end of their run."
- MaxBarraclough 7y agoUnless I'm missing something, the only reason you'd run a GC cycle on termination is to invoke finalizers. If the platform doesn't feature finalizers, or if it is known that they've not been used, there'd be no point at all.