RFR: 8271203: C2: assert(iff->Opcode() == Op_If || iff->Opcode() == Op_CountedLoopEnd || iff->Opcode() == Op_RangeCheck) failed: Check this code when new subtype is added

Tobias Hartmann thartmann at openjdk.java.net
Fri Jul 30 10:08:28 UTC 2021


On Fri, 30 Jul 2021 10:01:25 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> Hi, I'm trying to fix [JDK-8271203](https://bugs.openjdk.java.net/browse/JDK-8271203). It's reasonable to unswitch LongCountedLoop, so relax it.
>> 
>> ![image](https://user-images.githubusercontent.com/5010047/127302280-0faa90bb-add7-4639-8c63-49668901f267.png)
>
> test/hotspot/jtreg/compiler/c2/UnswitchingLongCountedLoop.java line 30:
> 
>> 28:  * @summary C2: assert(iff->Opcode() == Op_If || iff->Opcode() == Op_CountedLoopEnd || iff->Opcode() == Op_RangeCheck) failed: Check this code when new subtype is added
>> 29:  * @library /test/lib
>> 30:  * @run main/othervm -Xbatch -XX:-TieredCompilation -XX:CompileOnly=UnswitchingLongCountedLoop compiler.c2.UnswitchingLongCountedLoop
> 
> Isn't that CompileOnly statement missing the package name or a wildcard?

And `@library /test/lib` is not needed.

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

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


More information about the hotspot-compiler-dev mailing list