RFR: 8358619: Fix interval recomputation in CPU Time Profiler

Johannes Bechberger jbechberger at openjdk.org
Thu Jun 12 09:36:48 UTC 2025


Fixes the recomputation issue by passing either the rate or the period directly to the sampler (instead of just the rate value with the period value converted into a rate). This prevents issues when the number of cores changes during the JFR recording.

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

Commit messages:
 - 8358619: Fix interval recomputation in CPU Time Profiler

Changes: https://git.openjdk.org/jdk/pull/25775/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25775&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358619
  Stats: 327 lines in 11 files changed: 180 ins; 78 del; 69 mod
  Patch: https://git.openjdk.org/jdk/pull/25775.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25775/head:pull/25775

PR: https://git.openjdk.org/jdk/pull/25775


More information about the hotspot-jfr-dev mailing list