RFR: 7903913: JMH: Compiler profiler misses profiled times

Aleksey Shipilev shade at openjdk.org
Mon Dec 16 16:35:07 UTC 2024


Despite [CODETOOLS-7903911](https://bugs.openjdk.org/browse/CODETOOLS-7903911), compiler profiler still misses the "profiled" times. At this point, I think the problem is the asynchronous nature of compilations: if compiler completes compilation outside of iteration, profiler would miss it.

`profiled` is not a great counter, we can replace it with two counters that cover `warmup` and `measure` phases directly.

-------------

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jmh/pull/149/files
  Webrev: https://webrevs.openjdk.org/?repo=jmh&pr=149&range=00
  Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903913
  Stats: 41 lines in 2 files changed: 26 ins; 3 del; 12 mod
  Patch: https://git.openjdk.org/jmh/pull/149.diff
  Fetch: git fetch https://git.openjdk.org/jmh.git pull/149/head:pull/149

PR: https://git.openjdk.org/jmh/pull/149


More information about the jmh-dev mailing list