<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
{margin-top:0;
margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Just fixing the subject</p>
<p><br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> hotspot-gc-dev <hotspot-gc-dev-bounces@openjdk.java.net> on behalf of Milan Mimica <Milan.Mimica@infobip.com><br>
<b>Sent:</b> Sunday, May 21, 2017 13:12<br>
<b>To:</b> hotspot-gc-dev@openjdk.java.net<br>
<b>Subject:</b> RFR(XS) JDK-8176571:</font>
<div> </div>
</div>
<div>
<p>Hello</p>
<p><br>
</p>
<p>Here is my attempt to fix <a href="https://bugs.openjdk.java.net/browse/JDK-8176571">
https://bugs.openjdk.java.net/browse/JDK-8176571</a>. The same applies to jdk9 and 10.</p>
<p>It changes the NMT category of CHeapBitMap which is used only in G1 code. Given that the class is defined in "share" scope, and it may be used elsewhere in the future, perhaps it should be made made a template? That will add more boilerplate code to g1 sources.</p>
<p><br>
</p>
<p><span style="font-family:"Courier New",monospace; font-size:9pt">--- old/src/share/vm/utilities/bitMap.cpp 2017-05-21 13:09:15.350905240 +0200</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt">+++ new/src/share/vm/utilities/bitMap.cpp 2017-05-21 13:09:15.286905238 +0200</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt">@@ -48,10 +48,10 @@</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> class CHeapBitMapAllocator : StackObj {</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> public:</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> bm_word_t* allocate(size_t size_in_words) const {</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt">- return ArrayAllocator<bm_word_t, mtInternal>::allocate(size_in_words);</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt">+ return ArrayAllocator<bm_word_t, mtGC>::allocate(size_in_words);</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> }</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> void free(bm_word_t* map, idx_t size_in_words) const {</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt">- ArrayAllocator<bm_word_t, mtInternal>::free(map, size_in_words);</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt">+ ArrayAllocator<bm_word_t, mtGC>::free(map, size_in_words);</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> }</span><br style="font-family:"Courier New",monospace; font-size:9pt">
<span style="font-family:"Courier New",monospace; font-size:9pt"> };</span><br>
</p>
<p id="c1-id-7" style="font-size:10pt; font-family:Arial"><font id="c1-id-8" style="font-size:10pt" face="Arial" color="#ec6608"><strong id="c1-id-9">Milan Mimica, </strong></font><font id="c1-id-10" style="font-size:10pt" face="Arial" color="#333333">Senior
Software Engineer / Division Lead</font></p>
<p id="c1-id-11" style="font-size:10pt; font-family:Arial"><a id="c1-id-12" title="Visit Infobip website" href="http://www.infobip.com/?utm_source=Signature&utm_medium=Email&utm_campaign=Company" style="text-decoration:none"><img id="c1-id-13" alt="Visit Infobip website" hspace="0" border="0" src="http://www.infobip.com/images/signatures/infobip_signature.png"></a></p>
<p style="font-size:10pt; font-family:Arial"><font id="c1-id-15" style="font-size:9pt" face="Arial" color="#333333">Office: <strong id="c1-id-16">Mletacka 12/III, 52100 Pula, Croatia</strong> | Fax: <strong id="c1-id-18">+38552210979</strong> | Mobile:
<strong id="c1-id-19">+385993061692</strong> </font></p>
<p id="c1-id-20" style="font-size:10pt; font-family:Arial"><font id="c1-id-21" style="font-size:9pt" face="Arial" color="#333333">Email: <strong id="c1-id-22">Milan.Mimica@infobip.com</strong> | Skype: <strong id="c1-id-24">mmimicaib</strong> </font></p>
<p id="c1-id-27" style="font-size:10pt; font-family:Arial"><a href="https://www.facebook.com/infobip"><img border="0" src="http://www.infobip.com/images/signatures/facebook.png"></a><a href="https://www.linkedin.com/company/infobip"><img border="0" src="http://www.infobip.com/images/signatures/linked_in.png"></a><a href="https://twitter.com/Infobip"><img border="0" src="http://www.infobip.com/images/signatures/twitter.png"></a><a href="https://www.instagram.com/infobip/"><img border="0" src="http://www.infobip.com/images/signatures/instagram.png"></a></p>
<p id="c1-id-27" style="font-size:10pt; font-family:Arial"><a id="c1-id-28" href="http://www.infobip.com" style="text-decoration:none"><font id="c1-id-29" style="font-size:8pt" face="Arial" color="#ec6608"><strong id="c1-id-30">www.infobip.com</strong></font></a><font id="c1-id-31" style="font-size:8pt" face="Arial" color="gray"><font id="c1-id-32" style="font-size:8pt"><font id="c1-id-33" style="font-size:7pt" color="#a5a5a5"><font id="c1-id-34" style="font-size:8pt">
/ <strong id="c1-id-35">GSMA Associate Member</strong> / <strong id="c1-id-36">
Mobey Forum Member</strong></font> <font id="c1-id-37" style="font-size:8pt"><br id="c1-id-38">
</font>This message is private and confidential. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Infobip d.o.o. If you have received this message in error, please notify us immediately via email to
</font><a id="c1-id-39" href="mailto:customer.support@infobip.com"><font id="c1-id-40" style="font-size:7pt" color="#a5a5a5">customer.support@infobip.com</font></a><font id="c1-id-41" style="font-size:7pt" color="#a5a5a5"> or telephone +442032864231.</font></font></font></p>
</div>
</div>
<!-- NOSIGReplies -->
<p><font style="FONT-SIZE: 10pt" color="#ec6608" face="Arial"><strong>Milan Mimica, </strong></font><font style="FONT-SIZE: 10pt" color="#333333" face="Arial">Senior Software Engineer / Division Lead</font></p>
<p style="MARGIN-BOTTOM: 6pt; MARGIN-TOP: 6pt"><a style="COLOR: #0000ff" href="http://www.infobip.com/"><img title="embedded image (png)" style="BORDER-TOP: 0pt; BORDER-RIGHT: 0pt; BORDER-BOTTOM: 0pt; MARGIN: 0pt; BORDER-LEFT: 0pt" alt="[image]" src="http://www.infobip.com/images/signatures/infobip_signature.png" width="280" height="40" ?=""></a></p>
<p style="MARGIN-BOTTOM: 6pt; MARGIN-TOP: 6pt"><font face="Arial"><font style="FONT-SIZE: 10pt"><span style="FONT-SIZE: 9pt; COLOR: #333333"></span></font></font></p>
</body>
</html>