ThreadPoolExecutor and finalization

Roger Riggs roger.riggs at
Mon Oct 30 00:24:51 UTC 2017


With the deprecation of Object.finalize its time to look at its uses too 
see if
they can be removed or mitigated.

The ThreadPoolExecutor overrides finalize to shutdown the pool.
A simple but incomplete step is to retain the shutdown on finalize but 
remove it from
the specification of ThreadPoolExecutor.finalize (and remove the 
override).  [1]

For those familiar with Executors please take as look at the situation and
make a recommendation or suggestion.

Thanks, Roger


More information about the core-libs-dev mailing list