RFR: 7121: Unhandled exception while working with Thread Graphs

Marcus Hirt hirt at openjdk.java.net
Fri Feb 5 14:27:38 UTC 2021


On Fri, 5 Feb 2021 14:24:08 GMT, Marcus Hirt <hirt at openjdk.org> wrote:

>> This short PR addresses JMC-7121 [0], in which a  division by 0 error can occur when viewing the threads page with a focused selection that has no relevant thread information. A big thanks to Bipin for catching this, but for also providing easy steps to reproduce the issue.
>> 
>> The fix here adds a check when initializing the minimum lane height, ensuring that the default value gets set if there are no items.
>> 
>> [0] https://bugs.openjdk.java.net/browse/JMC-7121
>
> Marked as reviewed by hirt (Lead).

@guruhb - I believe this one is safe enough to bring over to 8.

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

PR: https://git.openjdk.java.net/jmc/pull/210


More information about the jmc-dev mailing list