<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>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>
<!-- NOSIGCopyofinfobip -->
<p id="c1-id-7" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><font id="c1-id-8" style="FONT-SIZE: 10pt" color="#ec6608" face="Arial"><strong id="c1-id-9">Milan Mimica, </strong></font><font id="c1-id-10" style="FONT-SIZE: 10pt" color="#333333" face="Arial">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" style="TEXT-DECORATION: none" href="http://www.infobip.com/?utm_source=Signature&utm_medium=Email&utm_campaign=Company"><img id="c1-id-13" border="0" hspace="0" alt="Visit Infobip website" 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" color="#333333" face="Arial">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" color="#333333" face="Arial">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" style="TEXT-DECORATION: none" href="http://www.infobip.com"><font id="c1-id-29" style="FONT-SIZE: 8pt" color="#ec6608" face="Arial"><strong id="c1-id-30">www.infobip.com</strong></font></a><font id="c1-id-31" style="FONT-SIZE: 8pt" color="gray" face="Arial"><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>
</body>
</html>