[PATCH] JMC-5706 JavaBlockingRule should report block times
Jessye Coleman Shapiro
jescolem at redhat.com
Tue Jun 11 18:53:28 UTC 2019
Hello,
This patch addresses JMC-5706: JavaBlockingRule should report block times
[0]. I have added the total time a top blocking monitor was blocked on to
the information reported.
I have also edited the 'groupedByThread' list filter condition to ensure
that only 'JavaMonitorEnter' events are being considered when determining
the 'mostBlockedThread'. Without the filter I was getting a null pointer
exception, as the most common thread has not necessarily been blocked and
therefore may not have a blocking time associated with it - let me know if
this is not the case.
See the attached patch bellow and let me know what you think.
Thank you!
Jessye
[0] https://bugs.openjdk.java.net/browse/JMC-5706
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jmc-5706.patch
Type: text/x-patch
Size: 4870 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/jmc-dev/attachments/20190611/b8fc8077/jmc-5706.patch>
More information about the jmc-dev
mailing list