JFR: Reduce logging overhead

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 15
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • jfr
    • b27

        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.

              Assignee:
              Erik Gahlin
              Reporter:
              Erik Gahlin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: