On Wed, 22 Feb 2023 18:41:13 GMT, Brent Christian <bchri...@openjdk.org> wrote:
> The cleaning action would not have access to the isShutdown() instance method > of the (Phantom-reachable) AutoShutdownDelegatedExecutorService. The cleaning action has a reference to the delegate (the underlying ExecutorService) so it can test if it shutdown as Daniel's suggests - it's more of an optimization to avoid doing a second call to shutdown in a privileged action. ------------- PR: https://git.openjdk.org/jdk/pull/12675