RFR: 8284686: Interval of < 1 ms disables ExecutionSample events
Johannes Bechberger
duke at openjdk.java.net
Tue Apr 12 13:13:38 UTC 2022
On Mon, 11 Apr 2022 16:53:08 GMT, Johannes Bechberger <duke at openjdk.java.net> wrote:
> Fixes the issue by rounding the period interval to the next full millisecond larger than zero.
>
> The following from the bug report works now:
>
> java -XX:StartFlightRecording=filename=flight.jfr,jdk.ExecutionSample#period=999us CLASS_FILE; jfr print --events jdk.ExecutionSample flight.jfr
>
> It considers the period to be `1ms`, producing the recording as expected.
The failing test seems to fail spuriously on Mac aarch64 (https://bugs.openjdk.java.net/browse/JDK-8284144). It does not have any relation to the proposed changes (it should not even call the changed code as JFR is not used).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8183
More information about the hotspot-jfr-dev
mailing list