On 01/27/2015 01:54 PM, Peter Levart wrote:
A poor-man's escape hatch is a shutdown hook that calls System.runFinalization(). Which might interfere with other shutdown hooks that run concurrently (runFinalizersOnExit runs finalizers after all shutdown hooks are finished).

Not really. This only runs finalizers for Objects pending finalization, while runFinalizersOnExit runs it for all Objects with finalize() methods that have not been invoked yet. A big difference. So there's no alternative if this method is removed.

Peter

Reply via email to