<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.EmailStyle21
{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">Hi Magnus
<br>
Could you provide an existing PR/implementation I can refer from ? <br>
Thanks<br>
Suchismith Roy<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">build-dev <build-dev-retn@openjdk.org> on behalf of Suchismith Roy <Suchismith.Roy@ibm.com><br>
<b>Date: </b>Wednesday, 8 May 2024 at 11:47</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">PM<br>
<b>To: </b>Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>, Thomas Stüfe <thomas.stuefe@gmail.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="mso-line-height-alt:.75pt"><span style="font-size:1.0pt;color:white">Thanks for the reply @Magnus Ihse Bursie Is there any example of PRs which create such libraries that I can refer to ? Is OSAL similar to how os.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">cpp
is defined and respective platforms implement them ? From: Magnus Ihse Bursie <magnus.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">ihse.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">bursie@</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">oracle.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">com>
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerStart<o:p></o:p></span></p>
</div>
<div style="border:none;border-top:solid #90A4AE 3.0pt;padding:0cm 0cm 0cm 0cm;display:block!important;text-align:left!important;margin:0px!important;padding:16px!important;border-radius:4px!important;min-width:200px!important;background-color:#D0D8DC!important;border-top:#90a4ae!important" id="pfptBannerrj3uuo9">
<div id="pfptBannerrj3uuo9">
<div id="pfptBannerrj3uuo9">
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><b><span lang="EN" style="font-family:"Arial",sans-serif;color:black">This Message Is From an External Sender
<o:p></o:p></span></b></p>
</div>
<div id="pfptBannerrj3uuo9">
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><span lang="EN" style="font-family:"Arial",sans-serif;color:black">This message came from outside your organization.
<o:p></o:p></span></p>
</div>
</div>
<div id="pfptBannerrj3uuo9">
<p class="MsoNormal" style="background:#D0D8DC"><span lang="EN" style="color:black"><a href="https://us-phishalarm-ewt.proofpoint.com/EWT/v1/AdhS1Rd-!-_FV_jY-Xk9bWls5LkTAMRolu--mVCfFT62NUiAr6uTAaHK_Uj80ADQPMZF5hepJJDlyrLYM6RePibMU4Y6qqCHB_FyMAOMT1-6w51TnhKgk5P1piB28UTKawX9Nsf0fQPvOcpq_0c90XA$"><span lang="EN-GB" style="text-decoration:none"><o:p></o:p></span></a></span></p>
<div style="border:solid #666666 1.0pt;padding:0cm 0cm 0cm 0cm;display:inline-block!important;display:inline-block;visibility:visible!important;opacity:1!important;color:#000000!important;font-size:14px!important;font-weight:normal!important;text-decoration:none!important;border-radius:2px!important;padding:16px!important;margin:16px!important;white-space:nowrap!important;width:fit-content!important">
<p class="MsoNormal" style="background:#D0D8DC"><span lang="EN" style="font-family:"Arial",sans-serif;color:black"><a href="https://us-phishalarm-ewt.proofpoint.com/EWT/v1/AdhS1Rd-!-_FV_jY-Xk9bWls5LkTAMRolu--mVCfFT62NUiAr6uTAaHK_Uj80ADQPMZF5hepJJDlyrLYM6RePibMU4Y6qqCHB_FyMAOMT1-6w51TnhKgk5P1piB28UTKawX9Nsf0fQPvOcpq_0c90XA$"><span style="color:black;text-decoration:none">Report Suspicious</span><span lang="EN-GB" style="color:black;text-decoration:none"><o:p></o:p></span></a></span></p>
</div>
<p class="MsoNormal" style="background:#D0D8DC"><span lang="EN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#D0D8DC"><span lang="EN" style="color:black"> </span><span lang="EN"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerEnd<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">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 ?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></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</span><o:p></o:p></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</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>