Time to retire System.runFinalizersOnExit?
peter.levart at gmail.com
Tue Jan 27 14:48:46 UTC 2015
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.
More information about the core-libs-dev