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

improve description of OutOfMemoryError relevant flags

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • b02
    • generic
    • generic

      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"

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

              Created:
              Updated:
              Resolved: