RFR: 8340389: vmTestbase/gc/gctests/PhantomReference/phantom001/TestDescription.java Test exit code: 97 with -Xcomp UseAVX=3 [v2]

Thomas Schatzl tschatzl at openjdk.org
Wed Oct 16 15:01:48 UTC 2024


On Wed, 16 Oct 2024 14:46:40 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> There is a comment a few lines above:
> 
> ```
> // There are scenarios where one WB.fillGC() isn't enough,
> // but 10 iterations really ought to be sufficient.
> ```
> 
> Do you know what that is about?

This is a renmant of the original change that forced a full gc every iteration. This is not necessary, the object should be finalizable after the first full gc already. That is, the comment is wrong. However we might need to wait a bit until the finalizer actually executes. I updated the comment.

I did not try optimizing the maximum wait time.

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

PR Comment: https://git.openjdk.org/jdk/pull/21538#issuecomment-2417079265


More information about the hotspot-gc-dev mailing list