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

assert(dfn != -1,"unknown depth first number") with fastdebug build

    XMLWordPrintable

Details

    • sparc
    • solaris, solaris_9

    Description

      Compiling and running the following jasm against a fastdebug mustang client VM results in an assertion failure. It's caused by a bug in sun C++ which generates wrong code for our tableswitch access code.

      % more s.jasm
      super public class s
      {


      public Method "<init>":"()V"
              stack 1 locals 1
      {
                      aload_0;
                      invokespecial Method java/lang/Object."<init>":"()V";
                      return;
      }

      public static Method main:"([Ljava/lang/String;)V"
              stack 2 locals 1
      {
                      aload_0;
                      arraylength;
                      tableswitch{ //1 to 6
                      2147483647: L40;
                      default: L48 };
              L40: getstatic Field java/lang/System.out:"Ljava/io/PrintStream;";
                      ldc String "foo";
                      invokevirtual Method java/io/PrintStream.println:"(Ljava/lang/String;)V";
              L48: return;
      }

      } // end Class s

      Attachments

        Activity

          People

            never Tom Rodriguez
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: