Running the attached JavaFuzzer-generated Java program (Test.java) on a debug JDK build as follows:
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test::test Test.java
Results in the following assertion failure:
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (../../src/hotspot/share/opto/loopopts.cpp:1605), pid=439963, tid=439976
# assert(!n->is_Store() && !n->is_LoadStore()) failed: no node with a side effect
#
# JRE version: OpenJDK Runtime Environment (20.0) (fastdebug build 20-internal-adhoc.rocastan.open)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 20-internal-adhoc.rocastan.open, compiled mode, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x14dbebf] PhaseIdealLoop::try_sink_out_of_loop(Node*)+0xa0f