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

Show register content in hs-err file on assert

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • 10
    • hotspot
    • b10

    Description

      At SAP we added a small feature to retrieve the current context when an assert happens and make that part of the hs-err file.
      That works similar to the SafeFetch logic: when an assert happens, we trigger a segfault and in the signal handler we squirrel the ucontext away, before continuing with error reporting.

      We do this right after the assert condition was evaluated, within the assert macro itself, as to preserve the context as close to the assertion point as possible.

      A short poll on hotspot-runtime-dev [1] indicated that there is interest we contribute this feature.

      [1] http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2017-October/025018.html

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: