Integrated: 8439: ArithmeticException thrown when plotting event count histogram with maxDuration set to 0

Aymane Harmaz aharmaz at openjdk.org
Wed Oct 8 16:40:32 UTC 2025


On Tue, 23 Sep 2025 10:07:04 GMT, Aymane Harmaz <aharmaz 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" />

This pull request has now been integrated.

Changeset: 58ca84a3
Author:    Aymane Harmaz <aharmaz at openjdk.org>
Committer: Marcus Hirt <hirt at openjdk.org>
URL:       https://git.openjdk.org/jmc/commit/58ca84a33ae498669a6f598b2d335d0e407a284f
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8439: ArithmeticException thrown when plotting event count histogram with maxDuration set to 0

Reviewed-by: hirt

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

PR: https://git.openjdk.org/jmc/pull/675


More information about the jmc-dev mailing list