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

method with many locals crashes HotSpot in compiled mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      x86
    • OS:
      generic, windows_nt

      Description



      Name: ipC94532 Date: 11/29/99



      Java HotSpot Client VM build 1.3-P in compiled mode (-Xcomp option) crashes without
      notification while running test vm/instr/astore_w/astore_w004/astore_w00401
      from jck1.3 i.e. at invocation of method with large number of locals.
       
      This is observed on winNT.

      To reproduce the bug run do.bat (source text bellow)

      Test passed on the classic VM and on HotSpot Client VM in mixed mode (witout options)
      and in interpreted mode (-Xint)

      Test was improved (The catching of StackOverflowError and OutOfMemoryError
      was addeed in the test. See bug #4280626).

      Running under winNT the do.bat outputs:

      >do.bat
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-P)
      Java HotSpot(TM) Client VM (build 1.3-P, mixed mode)
      ----95----

      >do.bat -Xcomp
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-P)
      Java HotSpot(TM) Client VM (build 1.3-P, compiled mode)
      ----128----

      >do.bat -Xint
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-P)
      Java HotSpot(TM) Client VM (build 1.3-P, interpreted mode)
      ----95----

      Sources:
      ---------------------- do.bat --------------------------------
      @echo off

      set CLASSPATH= <Your path to classes of tests>

      java %1 -version
      java %1 -Xfuture javasoft.sqe.tests.vm.astore_w.astore_w004.astore_w00401.astore_w00401

      echo ----%errorlevel%----

      -------------------- end of do.bat ------------------------


      -------------------- astore_w00401.jasm ------------------------
      //File: @(#)astore_w00401.jasm 1.4 99/10/13
      //Copyright 10/13/99 Sun Microsystems, Inc. All Rights Reserved

      package javasoft/sqe/tests/vm/astore_w/astore_w004/astore_w00401;

      public class astore_w00401 {

      public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
      stack 3 locals 3
      {
      try t7, t10;
      invokestatic Method run1:"()I";
      istore_2;
      endtry t7, t10;
      goto L10;
      catch t7 java/lang/StackOverflowError;
      astore_2;
      goto L10;
      catch t10 java/lang/OutOfMemoryError;
      astore_2;

      L10: iconst_0;
      ireturn;

      }

      public static Method run1:"()I"
      stack 2 locals 65535
      {
      aconst_null;
      astore_w 65534;
      iconst_0;
      ireturn;
      }


      public static Method main:"([Ljava/lang/String;)V"
      stack 2 locals 2
      {
      aload_0;
      getstatic Field java/lang/System.out:"Ljava/io/PrintStream;";
      invokestatic Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I";
      bipush 95/*STATUS_TEMP*/;
      iadd;
      invokestatic Method java/lang/System.exit:"(I)V";
      return;
      }

      } // end Class astore_w00401
      -------------------- end of astore_w00401.jasm ------------------------

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmcox David Cox
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: