<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>On 2025-03-10 13:02, Baesken, Matthias wrote:</p>
    <blockquote type="cite" cite="mid:AM9PR02MB6770E7A120A769AAC04830FC93D62@AM9PR02MB6770.eurprd02.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Aptos;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hello, while looking at
            the JDK native lib optimization levels, I noticed this
            special setting :<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">make/modules/java.management/Lib.gmk<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">ifeq ($(call isTargetOs,
            linux)+$(COMPILE_WITH_DEBUG_SYMBOLS), true+true)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">  
            LIBMANAGEMENT_OPTIMIZATION := LOW<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">endif<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Why is it there ?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I removed it  in out
            internal tests and saw no issues.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Do we still need it
            these days ? Was it maybe done for very old  gcc versions ?</span></p>
      </div>
    </blockquote>
    <p>That's a good question. As I've stated over and over again, I
      believe the overwhelming majority of the optimization flags are
      there for no good reason; at least for no reason that can be
      assumed to apply today.</p>
    <p>In this particular case I did some git archaeology. It goes way
      back to JDK-8054834: Modular Source Code, the jigsaw reshuffling
      in 2014, and I did not manage to trace it roots from before that.
      <br>
    </p>
    <p>/Magnus<br>
    </p>
    <br>
  </body>
</html>