[jdk8u-ri] RFR: 8287132: Retire Runtime.runFinalizersOnExit so that it always throws UOE [v4]

David Holmes dholmes at openjdk.java.net
Wed May 25 01:26:56 UTC 2022


> 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

David Holmes has updated the pull request incrementally with one additional commit since the last revision:

  Fix style nit

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk8u-ri/pull/9/files
  - new: https://git.openjdk.java.net/jdk8u-ri/pull/9/files/920e62af..9d064089

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk8u-ri&pr=9&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk8u-ri&pr=9&range=02-03

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk8u-ri/pull/9.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk8u-ri pull/9/head:pull/9

PR: https://git.openjdk.java.net/jdk8u-ri/pull/9


More information about the jdk8u-dev mailing list