RFR (T): 8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot
igor.ignatyev at oracle.com
Tue Dec 4 03:40:27 UTC 2018
the fix looks good to me.
> On Dec 3, 2018, at 5:06 PM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> 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