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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 7u60, 8, 9
    • Component/s: hotspot
    • None
    • jfr
    • Fix Understood

      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.

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

              Created:
              Updated: