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

Add JFR event to give information about Method Sampling Crash Protection invocations

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u60, 8, 9
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Understanding:
      Fix Understood
    • Introduced In Version:

      Description

      We need information about how many times the method sampler bails due to invocation of the Method Sampling Crash Protection code - this will give some indication about why method samples are not being retrieved. In addition, I suggest we make method sampling protection configurable also in product builds:

      The same defaults will apply: On in Product builds and Off in non-Product builds.

      However, you will be able to change this also in product builds (if we want to have someone force a crash directly to indicate a problem point in the stackwalking code). Now, there is no way to turn off protection in product code, so any reproducers which would need to crash need to use a separate fastdebug build.

        Attachments

          Activity

            People

            • Assignee:
              mgronlun Markus Grönlund
              Reporter:
              mgronlun Markus Grönlund
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: