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

Throwable should use StackWalker API to capture the backtrace

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd_minor
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Cause Known

      Description

      Backtrace of a Throwable is currently captured by the VM built-in stack walking code. The StackWalker API can be used to replace the VM backtrace implementation. The VM built-in backtrace logic has been tuned for performance. The performance criteria should be identified and which benchmarks to compare the performance.

      In addition, we need to look into a reliable way to fill in the backtrace during VM startup and also what to do when StackWalker throws any exception.

        Issue Links

          Activity

          Hide
          coleenp Coleen Phillimore added a comment -
          Link to performance testing sensitive to throwable size.
          Show
          coleenp Coleen Phillimore added a comment - Link to performance testing sensitive to throwable size.

            People

            • Assignee:
              bchristi Brent Christian
              Reporter:
              mchung Mandy Chung
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: