[jdk8u-ri] Integrated: 8287132: Retire Runtime.runFinalizersOnExit so that it always throws UOE
David Holmes
dholmes at openjdk.java.net
Thu Jun 2 21:23:33 UTC 2022
On Tue, 24 May 2022 02:40:32 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Please review these further changes for JDK 8 Maintenance Release 4 - JSR-337.
>
> The MR4 changes to the reference processing implementation have made continued support for `runFinalizersonExit` unreasonable and so it is "retired" and will always throw `UnsupportedOperationException`. (This is what was also done for `Thread.stop(Throwable)` in JDK 8.)
>
> Various updates to the specifications are made to remove references to running finalizers at exit - see the CSR request for details.
>
> All dead code (including the already dead `JVM_Exit`) is removed. Shutdown.java is replaced by the version from mainline with a slight modification as 8u doesn't have `sun.misc.VM.isShutdown()`.
>
> Tests using RFOE are deleted and a new test to check the throwing of UOE added. The new test was NOT a rename of an existing test but for some reason git is treating it that way.
>
> Testing: :jdk_core group
>
> Thanks,
> David
This pull request has now been integrated.
Changeset: 0d4cfc09
Author: David Holmes <dholmes at openjdk.org>
URL: https://git.openjdk.java.net/jdk8u-ri/commit/0d4cfc090c651786535529acfe5acb0209cb1d3d
Stats: 574 lines in 25 files changed: 98 ins; 364 del; 112 mod
8287132: Retire Runtime.runFinalizersOnExit so that it always throws UOE
Reviewed-by: mchung, iris
-------------
PR: https://git.openjdk.java.net/jdk8u-ri/pull/9
More information about the jdk8u-dev
mailing list