<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-IN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Thanks for the reply
<a id="OWAAM00707701E6B7074FB8312958A31B630C" href="mailto:magnus.ihse.bursie@oracle.com"><span style="font-family:"Aptos",sans-serif;text-decoration:none">@Magnus Ihse Bursie</span></a><br>
Is there any example of PRs which create such libraries that I can refer to ? <br>
Is OSAL similar to how os.cpp is defined and respective platforms implement them ?
<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com><br>
<b>Date: </b>Tuesday, 7 May 2024 at 6:18</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">PM<br>
<b>To: </b>Thomas Stüfe <thomas.stuefe@gmail.com>, Suchismith Roy <Suchismith.Roy@ibm.com><br>
<b>Cc: </b>build-dev@openjdk.org <build-dev@openjdk.org><br>
<b>Subject: </b>[EXTERNAL] Re: JDK-8170635 -- adding a base library to java<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">On 2024-05-06 16:36, Thomas Stüfe wrote:<br>
<br>
> Not sure if you meant to address this mail to a specific person. I <br>
> assume with proposal you mean this: <br>
> <a href="https://mail.openjdk.org/pipermail/build-dev/2016-September/017746.html">https://mail.openjdk.org/pipermail/build-dev/2016-September/017746.html</a>
?<br>
><br>
> If yes, my proposal was to move dladdr out of the OpenJDK code base <br>
> into an independent library that would be maintained by IBM, <br>
> hopefully, and would be a prerequisite for building the JDK.<br>
> If no, whose proposal did you mean?<br>
<br>
Oh, this is an old bug you're picking up Suchismith!<br>
<br>
I read through the discussion from 2016. It seems that the suggestion to <br>
make an external 3rd party library was only supported by Thomas, and <br>
that the general agreement among the other participants was that we <br>
should have a general, base-level "OSAL" (OS abstraction library) in the <br>
JDK, that could be used by both Hotspot and libjli, as well as other JDK <br>
libraries.<br>
<br>
Creating such a library would be a much larger effort than just adding a <br>
AIX implementation of dladdr to it, if it existed. The current structure <br>
of the JDK does not readily lend itself to such a library, neither in <br>
terms of source code layout nor build system.<br>
<br>
With that said, I do think it would be good if we had such a library. <br>
There are more cases than the AIX dladdr issue that is duplicated, like <br>
jio_snprintf() and friends. This has actually caused some headaches when <br>
doing static builds, since duplication of these functions are not <br>
allowed when creating a single linked instance. (The current duplication <br>
in dynamic libraries is just ugly and bad programming, not a compilation <br>
error.)<br>
<br>
But it is a much larger question than just fixing an AIX issue.<br>
<br>
/Magnus<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>