[12] RFR (T): 8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot

Igor Ignatyev igor.ignatyev at oracle.com
Tue Dec 4 03:40:27 UTC 2018

Hi Vladimir,

the fix looks good to me.

-- Igor

> On Dec 3, 2018, at 5:06 PM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> http://cr.openjdk.java.net/~vlivanov/8146090/webrev.00/
> https://bugs.openjdk.java.net/browse/JDK-8146090
> The test doesn't work with -XX:+DeoptimizeALot: the test expects execution to continue in generated code after System.gc() call, but JVM constantly deoptimizes it at that point in -XX:+DeoptimizeALot mode, so execution continues in interpreter and it breaks the invariant the test checks.
> The fix is to disable executing the test with -XX:+DeoptimizeALot.
> Testing: manually verified that the test isn't executed when -XX:+DeoptimizeALot is specified.
> Best regards,
> Vladimir Ivanov

More information about the hotspot-dev mailing list