On Tue, 11 Apr 2023 08:16:29 GMT, Afshin Zafari <d...@openjdk.org> wrote:

> The `finalize()` method is removed from base classes/interfaces and are 
> replaced by a Cleaner callback..

The interaction of Finalizable, FinalizableObject, Finalizer, and 
FinalizerThread is hard to follow, so it is hard to tell if your changes still 
honor the needed "finalization". Did you figure this all out? Perhaps you can 
summarize how it worked properly when using finalize(), and why it continues to 
work after your changes. I'm especially suspicious of your removal of the 
finalize() call in FinalizableObject. I don't see how this is made up for 
elsewhere in your changes. Is it because finalizeAtExit() is always overridden 
to do the right thing? If so, perhaps it should be made abstract in 
FinalizableObject.

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

PR Comment: https://git.openjdk.org/jdk/pull/13420#issuecomment-1505796926

Reply via email to