RFR: 8276116: C2: optimize long range checks in int counted loops [v2]

Roland Westrelin roland at openjdk.java.net
Mon Nov 29 10:26:42 UTC 2021


On Mon, 29 Nov 2021 10:05:16 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> Roland Westrelin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   x86 ad file fix
>
> No review yet, just run this through testing and TestLongRangeCheck.java fails with:
> 
> java.lang.RuntimeException: should have been deoptimized
> 	at TestLongRangeCheck.assertIsNotCompiled(TestLongRangeCheck.java:60)
> 	at TestLongRangeCheck.test(TestLongRangeCheck.java:127)
> 	at TestLongRangeCheck.main(TestLongRangeCheck.java:215)
> 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
> 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
> 	at java.base/java.lang.Thread.run(Thread.java:833)
> 
> 
> Flags are `-XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation`

@TobiHartmann thanks for running testing. That one should be fixed now.

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

PR: https://git.openjdk.java.net/jdk/pull/6576


More information about the hotspot-compiler-dev mailing list