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

VM limits the size of object to 64K bytes.

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      Name: akC45999 Date: 09/03/98



      No explicit limitations of object size are described in JVM Spec
      (implicit limitation is 65535*8 bytes).
      However VM limits the size of object to 64K bytes:
      if the size of object is more than 64K bytes,
      VM (JDK1.2fcsH) throws
         java.lang.IternalError: exceeding the 64K byte object size limit.

      To reproduce run JCK 1.2beta4 test
        vm/classfmt/lmt/fldnum001/fldnum00101m1/fldnum00101m1.html

      The test tries to load valid class with 65535 various length fields.
      This test used to pass before fix of security bug#4169277.

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


      allan.jacobs@Eng 1998-09-14
      The test vm/classfmt/lmt/mthnum/mthnum001/mthnum00101m1/mthnum00101m1.html
      also fails, too.

      algol% setenv JDK /net/mulder.eng/export/mulder3/jdk12x/sparc/jdk1.2FCS_I
      algol% setenv JCK /net/jde1.eng/export/jtech16/jck12b4
      algol% setenv CLASSPATH ${JCK}/classes:${JCK}/javatest.jar
      algol% ${JDK}/bin/java javasoft.sqe.tests.vm.classfmt.lmt.mthnum001.mthnum00101m1.mthnum00101m1
      test mthnum00101m1 failed to load good classfile mthnum00101m1p: java.lang.InternalError: exceed 64K method table size limit

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rfqsunw Rfq Rfq (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: