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:04:29 UTC 2021


On Wed, 28 Jul 2021 09:54:29 GMT, Yi Yang <yyang 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)

Changes requested by thartmann (Reviewer).

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?

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

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


More information about the hotspot-compiler-dev mailing list