On Thu, 18 Nov 2021 07:27:30 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:
>> @stuart-marks not sure I see how anything is different here compared to the >> existing logic. The `Finalizer` class is explicitly initialized quite early >> in the init process, but if a preceding class's initialization created an >> object with a finalizer then that same upcall would be involved. > > Do we even have to have a flag on Java side? It looks like these calls are > only done as the upcalls from VM, so we might just keep the flag on VM side? @shipilev not sure what you mean by "a flag on the Java side". The Java code just queries the VM for the finalization enabled/disabled state and uses that to control things. ------------- PR: https://git.openjdk.java.net/jdk/pull/6442