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

C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size

    XMLWordPrintable

Details

    • b03
    • sparc
    • Verified

    Backports

      Description

        While trying to exercise the loadI2L_immI rule on sparc, I hit the following fastdebug crash:

        # To suppress the following error report, specify this argument
        # after -XX: or in .hotspotrc: SuppressErrorAt=/ad_sparc.cpp:7967
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (../generated/adfiles/ad_sparc.cpp:7967), pid=7960, tid=31
        # assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0-b123) (build 1.8.0-ea-fastdebug-b123)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b65-fastdebug mixed mode solaris-sparc compressed oops)

        With a product build, the crash is less informative:

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (output.cpp:1559), pid=7968, tid=31
        # guarantee((int)(blk_starts[i+1] - blk_starts[i]) >= (current_offset - blk_offset)) failed: shouldn't increase block size
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0-b123) (build 1.8.0-ea-b123)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b65 mixed mode solaris-sparc compressed oops)

        % cat a1.java
        public class a1 {
            static int x[] = new int[1];
            static long foo() {
                return x[0] & 0xfff0ffff;
            }

            public static void main(String[] args) {
                x[0] = -1;
                long l = 0;
                for (int i = 0; i < 100000; ++i) {
                    l = foo();
                }
                System.out.println(l);
            }
        }

        To reproduce:
        % java -server -XX:-TieredCompilation a1

        Attachments

          Issue Links

            Activity

              People

                iveresov Igor Veresov
                dlong Dean Long
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: