Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8248079 | 16 | Erik Gahlin | P3 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8248079 JFR: Reduce logging overhead
- Resolved