compilation results in stack overflow while unrolling loop

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.3.1_12
    • Affects Version/s: 1.3.1, 1.4.0
    • Component/s: hotspot
    • None
    • 12
    • x86, sparc
    • generic, solaris_8
    • Verified

        Compilation results in either compiler thread stack overflow or with
        command-line switch -XssNm can result in OutOfMemory error.

        Problem occurs during compilation of t1::main in program below:
        // ------------------------------------------------------------
        // t1.java
        class c
        {
            private int val;

            void setVal( int x )
            {
                this.val = x;
            }
        }

        public class t1
        {

            public static void main( String[] args )
            {
                final int n = 100000000;

                for ( int i = 0; i < n; i++ ) {
                    c aC = new c();
                    aC.setVal( i );
                }
            }
        }
        // ------------------------------------------------------------

        // WIN32 ===== Ladybird FCS

        java -Xbatch t1
        CRASH

        java -Xbatch -Xss1m t1
        OutOfMemory in CompileThread0

        The product command line did not result in a crash on Solaris SPARC

        // SPARC ===== Current merlin_beta2

        Assert in Node::verify_construction "Node limit exceeded" during loop unrolling.

              Assignee:
              Michael Paleczny (Inactive)
              Reporter:
              Michael Paleczny (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: