RFR: 8358619: Fix interval recomputation in CPU Time Profiler
Jaroslav Bachorik
jbachorik at openjdk.org
Wed Jun 18 11:54:28 UTC 2025
On Thu, 12 Jun 2025 09:27:30 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:
> 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.
src/jdk.jfr/share/classes/jdk/jfr/internal/util/TimespanRateOrPeriod.java line 37:
> 35: public static final TimespanRateOrPeriod OFF = new TimespanRateOrPeriod(0, 0, false);
> 36:
> 37: public static TimespanRateOrPeriod of(String text) {
Please add the doc about the allowed format for the `text` input
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25775#discussion_r2154403402
More information about the hotspot-jfr-dev
mailing list