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

"out of memory" error during class load misrepresented as NoClassDefFoundError

    XMLWordPrintable

Details

    • 1.2alpha2
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_95, windows_nt
    • Not verified

    Description

      IN allocNBytes(), if the calloc fails, JAVA_ERROR does a long jump.
      In the case of loading a class this long jump is back to createInternalClass().

      If you follow it up the call stack it will return through

      LoadClassFromFile
      LoadClassLocally
      FindClassFromClass
      Locked_InitializeClass

      Locked_InitializeClass() reports the error as a NoClassDefFoundError.

      This is misleading to a user who spends time figuring out if their class
      path is incorrect. Although this may not be an issue for ports
      of the VM to systems such as solaris and win32 which will rarely
      run out of memory, it is an issue for ports to smaller memory
      configuration OS's.

      Attachments

        Issue Links

          Activity

            People

              sliangsunw Sheng Liang (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: