<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 18, 2024 at 2:31 PM Kevin Walls <<a href="mailto:kevin.walls@oracle.com">kevin.walls@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg6244474087781829365">
<div lang="EN-GB">
<div class="m_6244474087781829365WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Right, the existing Deprecated tag had me thinking this was a Java SE interface that had begun the deprecation process.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">But it's not a published API.</span></p></div></div></div></blockquote><div><br></div><div>Great, it seems we have consensus that we can go ahead and remove these deprecated methods which return no useful data. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg6244474087781829365"><div lang="EN-GB"><div class="m_6244474087781829365WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Maybe we can go further: HotspotCompilationMBean and HotspotInternalMBean look unused. They are not exposed in the standard PlatformMBeanServer.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u></span></p></div></div></div></blockquote><div><br></div><div>It seems we can! But since (a) this is my first serviceability contribution and (b) the motivations for removing other unused beans may differ and also be more controversial, I'd prefer to warm up with a PR narrowly focused on the deprecated per-thread stats. We can then follow up with a broader discussion of removal of unused Hotspot internal beans.</div><div><br></div><div>Would that be okay with you? <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg6244474087781829365"><div lang="EN-GB"><div class="m_6244474087781829365WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">While looking for who/what uses these, I also found a recent mailing list thread:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">"Question on why sun.management MBeans are not exported?"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="https://www.mail-archive.com/core-libs-dev@openjdk.org/msg19878.html" target="_blank">https://www.mail-archive.com/core-libs-dev@openjdk.org/msg19878.html</a></span></p></div></div></div></blockquote><div><br></div><div>Thanks, that provides some very useful context.</div><div><br></div><div>Cheers,</div><div>Eirik. </div></div></div>