java.util.concurrent.ThreadPoolExecutor.finalize() 方法以前会关闭线程池。在 Java 11 中,finalize 方法不执行任何操作。
java.util.concurrent.ThreadPoolExecutor.finalize()