[11] RFR JDK-8198249: Remove deprecated Runtime::runFinalizersOnExit and System::runFinalizersOnExit

mandy chung mandy.chung at oracle.com
Tue Feb 20 19:57:04 UTC 2018

Hi David,

I reworked the change in Shutdown class and uses jdk.internal.misc.VM to 
maintain the shutdown state, either in progress or shutdown (i.e. all 
shutdown hooks have been started).

What do you think this revised version:

On 2/15/18 9:14 PM, David Holmes wrote:
> All other updates seem okay. I did have one further thought - in 
> Runtime does this change:
>       public void runFinalization() {
> !         SharedSecrets.getJavaLangRefAccess().runFinalization();
>       }
> affect the classloading/initialization order at all?

Runtime::runFinalization is not called by the system code.  So it won't 
be invoked during startup and hence won't change the classloading order 
during startup.


More information about the core-libs-dev mailing list