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

improve description of OutOfMemoryError relevant flags

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • b02
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: