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

JFR: Reduce logging overhead

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 15
    • None
    • hotspot
    • None
    • jfr
    • b27

    Backports

      Description

        JFR creates unnecessary objects during startup.

        We should check that logging is enabled before constructing a log line. Also, the Supplier<String> method in the Logger class is somewhat of anti pattern, since it increases the cost for log statements that are only executed once.

        Attachments

          Issue Links

            Activity

              People

                egahlin Erik Gahlin
                egahlin Erik Gahlin
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: