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

(jit) JVM crash when running a method with 6000 local variables (with JIT on).

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.4
    • Verified



      Name: akC45999 Date: 06/04/98



      the test (vm/classfmt/lmt/lcvnum001/lcvnum00102) is too long
      to include it here. It can be found in JCK since 12beta3.

      --------------------------------- lcvnum00102m1p.jasm

      class javasoft/sqe/tests/vm/classfmt/lmt/lcvnum001/lcvnum00102m1/lcvnum00102m1p extends java/lang/Exception {

      Method <init>:"()V"
      stack 3 locals 6002
      {
      aload_0;
      dup;
      invokespecial Method java/lang/Exception.<init>:"()V";

      iconst_0; istore_1;

      iload_w 1; iconst_1; iadd; istore_w 2;
      iload_w 2; iconst_1; iadd; istore_w 3;
      iload_w 3; iconst_1; iadd; istore_w 4;
      iload_w 4; iconst_1; iadd; istore_w 5;
      iload_w 5; iconst_1; iadd; istore_w 6;
      iload_w 6; iconst_1; iadd; istore_w 7;
      iload_w 7; iconst_1; iadd; istore_w 8;
      iload_w 8; iconst_1; iadd; istore_w 9;
      iload_w 9; iconst_1; iadd; istore_w 10;
      iload_w 10; iconst_1; iadd; istore_w 11;
      iload_w 11; iconst_1; iadd; istore_w 12;
      ......................
      iload_w 5996; iconst_1; iadd; istore_w 5997;
      iload_w 5997; iconst_1; iadd; istore_w 5998;
      iload_w 5998; iconst_1; iadd; istore_w 5999;
      iload_w 5999; iconst_1; iadd; istore_w 6000;
      iload_w 6000; iconst_1; iadd; istore_w 6001;

      iload_w 6001;
      sipush 6000;
      if_icmpne L;
      return;
      L:
      athrow;
      }

      } // end Class lcvnum00102m1p

      ----------------------------------------
      Running the test:

      novo64% java -version
      java version "1.2beta4"
      Classic VM (build JDK-1.2beta4-H, green threads, sunwjit)
      novo64% java -verify javasoft.sqe.tests.vm.classfmt.lmt.lcvnum001.lcvnum00102m1.lcvnum00102m1
      IGBUS 10* bus error
          si_signo [10]: SIGBUS 10* bus error
          si_errno [0]: Error 0
          si_code [1]: BUS_ADRALN [addr: 0xf86]

      ======================================================================

      ======================================================================

            never Tom Rodriguez
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: