RFR (T): 8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot
vladimir.x.ivanov at oracle.com
Tue Dec 4 01:06:59 UTC 2018
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
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.
More information about the hotspot-dev