On Fri, 19 Nov 2021 18:15:46 GMT, Brent Christian <bchri...@openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/Object.java line 481: >> >>> 479: * system resources or to perform other cleanup. >>> 480: * <p> >>> 481: * <b>When running in a Java virtual machine in which finalization >>> has been >> >> Disabling finalization is not part of the Java SE spec. This paragraph >> describes the implementation of HotSpot VM and I think it does not belong to >> this javadoc. > > The coupling between this change and > [8276422](https://bugs.openjdk.java.net/browse/JDK-8276422) ("Add > command-line option to disable finalization") is probably tighter than would > be ideal. That [CSR](https://bugs.openjdk.java.net/browse/JDK-8276773) > allows for finalization to be disabled in the SE Platform Spec and the JLS. Thanks for pointing out that the CSR for JDK-8276422 ("Add command-line option to disable finalization") includes the change of the SE Platform Spec and JLS to allow an implementation for finalization to be disabled. This makes senses now. ------------- PR: https://git.openjdk.java.net/jdk/pull/6465