RFR: 8439: ArithmeticException thrown when plotting event count histogram with maxDuration set to 0 [v2]
Aymane Harmaz
duke at openjdk.org
Thu Sep 25 17:28:22 UTC 2025
> When plotting event count histogram and all event durations are set to 0, the duration range will be evaluated to 0, leading to an ArithmeticException (divid by 0), which stops JMC from plotting that histogram.
>
> This can be shown on the attached screenshot, where only the percentile table is shown and the histogram chart is missing
>
> <img width="1506" height="865" alt="missing-histogram" src="https://github.com/user-attachments/assets/7a02b705-83f3-45e9-9feb-91c5904064e7" />
Aymane Harmaz has updated the pull request incrementally with one additional commit since the last revision:
Implemented review comment
-------------
Changes:
- all: https://git.openjdk.org/jmc/pull/675/files
- new: https://git.openjdk.org/jmc/pull/675/files/469f134e..9e8221a5
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jmc&pr=675&range=01
- incr: https://webrevs.openjdk.org/?repo=jmc&pr=675&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jmc/pull/675.diff
Fetch: git fetch https://git.openjdk.org/jmc.git pull/675/head:pull/675
PR: https://git.openjdk.org/jmc/pull/675
More information about the jmc-dev
mailing list