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

poor garbage collector performance on Solaris

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • CPU:
      sparc
    • OS:
      solaris_7

      Description



      Name: ngC57085 Date: 03/30/2000



      jdk1.3.0rc2-Y cannot successfully execute next test on Solaris:

      --------------------------test.java------------------------------------
      package p;

      import java.io.PrintStream;

      public class test {
        public static void main(String args[]) {
      System.exit(run(args, System.out) + 95/*STATUS_TEMP*/);
      }
       
      public static int run(String args[], PrintStream out) {
      // int lim1 = 10000;
      int lim1 = 5;
      int len = 1000000000;
      int i = -1;
      int [][][] a = new int [lim1][][];

      for (i = 0; i < lim1; i++) {
      try {
      a[i] = new int [len][len];
      out.println("i = "+i+" len = "+len+" size "+(len*len));
      } catch (OutOfMemoryError e) {
      out.println("i = "+i+" len = "+len);
      if (len > 20)
      len /= 2;
      else
      break;
      }
      }
      a = null;
      out.println("len="+len);
      out.println("i="+i);
      return 0/*STATUS_PASSED*/;
      }

      }
      -----------------------------------------------------------------------

      > javac -d . test.java

      > java -version
      java version "1.3.0rc2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc2-Y)
      Java HotSpot(TM) Client VM (build 1.3.0rc2-Y, interpreted mode)

      > java -verify p.test
      i = 0 len = 1000000000
      #
      # An unexpected exception has been detected in native code outside the VM.
      # Program counter=0xff0c1a20
      #

      Classic VM successfully executes this test:

      > java -classic -version
      java version "1.3.0rc2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc2-Y)
      Classic VM (build 1.3.0rc2-Y, green threads, nojit)

      > java -classic -verify p.test
      i = 0 len = 1000000000
      i = 1 len = 500000000
      i = 2 len = 250000000
      i = 3 len = 125000000
      i = 4 len = 62500000
      len=31250000
      i=5

      Note, that jdk1.3.0A executes this test successfully.

      > java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-A)
      HotSpot Core VM (build 1.3beta-A-release, 1.3beta-A-release, interpreted mode,
      release build A)

      > java -verify p.test
      i = 0 len = 1000000000
      i = 1 len = 500000000
      i = 2 len = 250000000
      i = 3 len = 125000000
      i = 4 len = 62500000
      len=31250000
      i=5

      There are three tests in JCK (expr05001, expr05601, expr49401) that
      can fail because of this bug. Now these tests are excluded because of
      another bug.

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmasa Jon Masamitsu (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: