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

Reduce footprint of 1.3 by FCS, if possible (RC1 appears bigger than beta)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • 1.3.0
    • hotspot
    • x86
    • windows_nt



      Name: krT82822 Date: 01/30/2000


      orig user synopsis: "The ceiling of maximum available heap at SDK v1.3 RC1 becomes lower than v1.3be"

      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

      The ceiling of maximum available heap at SDK v1.3 RC1 becomes lower than
      v1.3beta

      -----------------------------------------------------------------------------
      In SDK v1.3 RA (build 1.3.0-I),
      the max of array size can be up to 1259761474 bytes.

      G:\java\memory>java -mx1262485504 LargeArrayTest6
      1259761474
      should be 123: 123

      -----------------------------------------------------------------------------
      But in SDK v1.3 RC1 (build 1.3.0rc1-T)
      the same size of heap memory can not get.

      E:\java\memory>java -mx1262485504 LargeArrayTest6
      1259761474
      Exception in thread "main" java.lang.OutOfMemoryError
              <<no stack trace available>>

      It is down-grading.

      --------------------------------------------------------------------------

        The test procedure is the same as the case of Bug ID 4298569

        The procedure is :
      java -mx1262485504 LargeArrayTest6

      //------------- LargeArrayTest6.java -------------
      class LargeArrayTest6 {
         public static void main(String[] args) {
            byte[] array;
            int size = 1259761474; //<<-- modify the size here
            System.out.println( size );

            array = new byte[size];
            array[size-1] = 123;
            System.out.println("should be 123: " + array[size-1]);

         }
      }
      //-----------------------------------------------------------

      30 Jan 2000 eval1127@eng -- in reply to our asking whether this report said anything new beyond the previous bug (othet than that RC1 has a bigger "footprint"
      than beta), user noted:

      RC1 takes a bigger "footprint".
      In RC1, we can get less heap memory.


      (Review ID: 100494)
      ======================================================================

            sgrarupsunw Steffen Grarup (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: