Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8257574

C2: "failed: parsing found no loops but there are some" assert failure

XMLWordPrintable

    • b20
    • 16
    • b28

        # 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) {

                        }
                    }
                }
            }
        }

              roland Roland Westrelin
              roland Roland Westrelin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: