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

Creating huge multidimensional array crashes Hotspot

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      kestrel
    • CPU:
      sparc
    • OS:
      solaris_7

      Description



      Name: ipC94532 Date: 11/26/99


      Hotspot crashes at huge multidimensional array creation. Classic
      VM correctly throws java.lang.OutOfMemoryError.

      Bug was reproduced on hardware:
      - Sun Ultra-2, 512Mb
      - Sun Ultra-1, 256Mb

      --------------------------------------------------- a.java ----
      public class a {
         public static void main(String[] args) {
      int array[][] = new int[50000000][];
        }
      }
      ---------------------------------------------------------------

      > uname -a

      SunOS novo12 5.7 Generic_Patch sun4u sparc SUNW,Ultra-2

      > javac a.java

      > java -version

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

      > java -classic -version

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

      > java -classic a

      Exception in thread "main" java.lang.OutOfMemoryError
      at a.main(a.java:3)

      > java a

      #
      # HotSpot Virtual Machine Error, Unexpected Signal 11
      #
      # Error ID: 4F533F534F4C415249530E435050079A 01
      #

      > hserror 4F533F534F4C415249530E435050079A

      os_solaris.cpp, 1946

      > java -Xmx256m a
      > echo $status

      0


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

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: