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

Make AbortVMOnException available in product builds

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 8-pool
    • hotspot
    • None
    • behavioral
    • minimal
    • add/remove/modify command line option
    • JDK

      Summary

      The goal of this request is to convert AbortVMOnException option from Debug to Diagnostic option so that it can be used in product builds.

      Problem

      AbortVMOnException and AbortVMOnExceptionMessage are debug only options. These options are useful for generating diagnostic data for investigating Java/HotSpot issues that just throw Exceptions. But the problem is that these options can not be used in Product builds of the product.

      Solution

      The proposal is to make these options diagnostic options so that these are available in Product builds with -XX:+UnlockDiagnosticVMOptions.

      Specification

      Options AbortVMOnException and AbortVMOnExceptionMessage can be used to generate hs_err log file and a core file when the exception specified with AbortVMOnException having message specified with AbortVMOnExceptionMessage occurs. Example:
      
      $ ./[...]/jdk/bin/java -XX:+UnlockDiagnosticVMOptions -XX:AbortVMOnException=java.lang.StackOverflowError Test
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      #  Internal Error (exceptions.cpp:500), pid=166830, tid=0x00007f19e44e2640
      #  fatal error: Saw java.lang.StackOverflowError, aborting

            dskantz Daniel Skantz
            poonam Poonam Bajaj Parhar
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: