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

Remove -XX:SuppressErrorAt develop option

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 21
    • 21
    • hotspot
    • None
    • b10

    Description

      Remove the -XX:SuppressErrorAt=cstr develop option. This option is used to ignore failed assertions at the indicated places, continuing execution as if the assertion had passed or not been present.

      Continuing from a failed assertion is often problematic. The following code likely really does depend on the asserted state for correct execution. Some of the possible behaviors include crashes and computing incorrect results.

      Also, this feature is blocking JDK-8302189.

      This option exists from the very early days of HotSpot.

      A use-case for this feature is using a debug build while attempting to reproduce a product failure. The idea is to skip the assertion failure and see if things fail in the same manner as the product failure. This could also be accomplished by rebuilding the debug build with the failing assertion commented out. That used to be a fairly unpleasant prospect because build times were so long. That's *much* less of a problem now. And a failing assertion is likely a pretty good indication of the problem anyway.

      Attachments

        Issue Links

          Activity

            People

              kbarrett Kim Barrett
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: