RFR: 8343213: TEST_BUG: [Graal] java/lang/ref/Basic.java fails
Brent Christian
bchristi at openjdk.org
Thu Oct 31 00:52:35 UTC 2024
On Tue, 29 Oct 2024 16:52:45 GMT, Tom Rodriguez <never at 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
More information about the core-libs-dev
mailing list