-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 21, 23, 24
-
b05
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8351685 | 24.0.2 | Satyen Subramaniam | P4 | Resolved | Fixed | master |
JDK-8351684 | 21.0.8 | Satyen Subramaniam | P4 | Resolved | Fixed | master |
Current `CompilerBroker` counters that are fed into `CompilationMXBean.getTotalCompilationTime()` and JFR `CompilerStatistics` only records the time for successful compilations. If we take a while in compilation and then fail/bail, that time would not be accounted for.
While this seems to be a long-standing behavior, there are problems with this:
1. This is not what "total" means.
2. This gives us a blind spot in measuring time taken in failing/bailing compilations.
3. It does not match well the Javadoc for the bean: "Returns the approximate accumulated elapsed time (in milliseconds) spent in compilation." -- since the time spent in failing/bailing compilation is still time spent in compilation.
- backported by
-
JDK-8351684 "Total compile time" counter should include time spent in failing/bailout compiles
-
- Resolved
-
-
JDK-8351685 "Total compile time" counter should include time spent in failing/bailout compiles
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk21u-dev/d9bb8dd9
-
Commit(master) openjdk/jdk24u/a2c3b81b
-
Commit(master) openjdk/jdk/12700cb8
-
Review(master) openjdk/jdk21u-dev/1457
-
Review(master) openjdk/jdk24u/117
-
Review(master) openjdk/jdk/22760