RFR(T)  : 8218178 vmTestbase/vm/mlvm/mixed/stress/regression/b6969574/INDIFY_Test.java fails with -Xcomp
igor.ignatyev at oracle.com
Fri Feb 1 01:33:56 UTC 2019
> 1 line changed: 0 ins; 0 del; 1 mod;
could you please review this one-liner fix for b6969574 test?
the test was unproblem-listed by 8067250[1,2], and started to fail in runs w/ Xcomp. 8067250 fixed only the problem described in the bug (unstable results from MH.invokeWithArguments), the test however appears to have another problem which manifests only in certain configurations. the test expects Method.invoke() <= MH.invokeExact(), and in some cases, most notably -Xcomp, we might get MH.invokeExact < Method.invoke. the test is a regression test for 6969574, where it was reported that indy is slower than reflection, therefore comparing MH::invokeExact w/ Method::invoke should be irrelevant for the test and using assumptions about their relation is wrong. the fix replaces comparison of Method.invoke vs MH.invokeExact by comparison of Method.invoke vs indy.
- the test on product and fastdebug w/o any extra flags
- the test w/ one configuration it was seen failed (-Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation)
- :vmTestbase_vm_mlvm in all configurations used in tier6, the first tier the test fails
More information about the hotspot-compiler-dev