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

Remove jdk.jfr.Recording::setFlushInterval and jdk.jfr.Recording::getFlushInterval

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
      jfr
    • Resolved In Build:
      b32

      Backports

        Description

        JEP 349: JFR Event Stream introduced two methods to the jdk.jfr.Recording class, setFlushInterval and getFlushInterval. Purpose of the methods were to control the rate at which data are flushed to disk. A higher flush rate means less overhead.

        After integration, we have come to the conclusion that the overhead using a value of 1 s is not measurable and the methods don't carry weight to be part of the API. They should therefore be removed.

        To minimize changes late in the release, the implementation will be kept, but the access will be changed from public to package private

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  egahlin Erik Gahlin
                  Reporter:
                  egahlin Erik Gahlin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: