# Internal Error (/home/roland/jdk-jdk/src/hotspot/share/opto/loopnode.cpp:3752), pid=1215493, tid=1215508
# assert(_ltree_root->_child == __null || C->has_loops() || only_has_infinite_loops() || C->has_exception_backedge()) failed: parsing found no loops but there are some
from a CTW run. Also reproducible with:
/**
* @test
*
* @run main/othervm -Xcomp -XX:CompileOnly=TestInfiniteLoopNotInnerMost::test TestInfiniteLoopNotInnerMost
*
*/
public class TestInfiniteLoopNotInnerMost {
public static void main(String[] args) {
test(false);
}
private static void test(boolean flag) {
if (flag) {
while (true) {
for (int i = 1; i < 100; i *= 2) {
}
}
}
}
}