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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2alpha2
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_2.5.1, windows_95, windows_nt
    • Verification:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: