RFR: 8439: ArithmeticException thrown when plotting event count histogram with maxDuration set to 0 [v2]
Aymane Harmaz
duke at openjdk.org
Sat Sep 27 09:22:33 UTC 2025
On Thu, 25 Sep 2025 17:28:22 GMT, Aymane Harmaz <duke at openjdk.org> wrote:
>> 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
Thanks for the review.
-------------
PR Comment: https://git.openjdk.org/jmc/pull/675#issuecomment-3341439030
More information about the jmc-dev
mailing list