On Tue, 29 Oct 2024 16:52:45 GMT, Tom Rodriguez <ne...@openjdk.org> wrote:

> The notification that finalize is complete should be done after printing the 
> message because in Xcomp mode there might be a significant delay at the 
> println so the object hasn't actually been finalized yet.

Would it help for `Basic.finalized` to be declared `volatile`?
AFAICT, `finalized` is written by a/the finalizer thread, but read on the main 
thread.

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

PR Comment: https://git.openjdk.org/jdk/pull/21767#issuecomment-2448772032

Reply via email to