<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 3/10/25 5:02 AM, Baesken, Matthias
wrote:<br>
</div>
<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 ?</span></p>
</div>
</blockquote>
<p>I've traced this back to [1]. In that change they lowered the
optimization level to that of fastdebug for the libraries that had
full debug symbols configured, at least for Linux. See code here
[2]. The only explanation I can give is that they tried to be very
conservative with the debug symbols change.<br>
</p>
<blockquote type="cite" cite="mid:AM9PR02MB6770E7A120A769AAC04830FC93D62@AM9PR02MB6770.eurprd02.prod.outlook.com">
<div class="WordSection1">
<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 ?<o:p></o:p></span></p>
</div>
</blockquote>
<p>I very much doubt it's needed, but it does mean that this lib has
been compiled at "LOW" for most, if not all, relevant builds of
OpenJDK since then.<br>
</p>
/Erik<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-7071907">https://bugs.openjdk.org/browse/JDK-7071907</a><br>
[2]
<a class="moz-txt-link-freetext" href="https://github.com/openjdk/jdk7u/blob/6f892a5354bd5063418d74e32ded9653d24a768d/jdk/make/common/Defs-linux.gmk#L286">https://github.com/openjdk/jdk7u/blob/6f892a5354bd5063418d74e32ded9653d24a768d/jdk/make/common/Defs-linux.gmk#L286</a><br>
<br>
</body>
</html>