Show register content in hs-err file on assert

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 10
    • Component/s: hotspot
    • b10

      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

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

              Created:
              Updated:
              Resolved: