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

improve description of OutOfMemoryError relevant flags

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      generic
    • OS:
      generic

      Description

      OutOfMemoryError throws out of JVM won't notify hotspot, so debug.cpp::report_java_out_out_memory won't handle it. More details are in JDK-8257790.

      The following flags won't respect OOME from java libraries. We need to make the description more clear to users.

      HeapDumpOnOutOfMemoryError -- "Dump heap to file when java.lang.OutOfMemoryError is thrown"
      OnOutOfMemoryError -- "Run user-defined commands on first java.lang.OutOfMemoryError"
      CrashOnOutOfMemoryError -- "JVM aborts, producing an error log and core/mini dump, on the first occurrence of an out-of-memory error"
      ExitOnOutOfMemoryError -- "JVM exits on the first occurrence of an out-of-memory error"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xliu Xin Liu
              Reporter:
              xliu Xin Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: