<html xmlns:v="urn:schemas-microsoft-com:vml" 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:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">>I expect to initiate the backport in a dedicated openjdk/riscv-port-jdk17u repository for exactly that. Until the riscv port is considered very stable and performant, we likely want to keep it in a separate repository.
 When stable, we can work with the relevant maintainers of jdk8u, jdk11u and jdk17u for possible integrations.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">Agree. It’s a good idea to make a stable backport before upstream to jdk17u.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">We discussed with Goetz this May [1], and I have an backport version [2] with more changes in shared code protected by #ifdef RISCV that would meet
 Goetz’s concerns.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">I can contribute the initial backport when the riscv-port-jdk17u repo is ready, and we can backport patches we think are necessary until it is ready
 to go to jdk17u-dev.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">Do you think that’s okay?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">[1]
<a href="https://mail.openjdk.org/pipermail/jdk-updates-dev/2022-May/014396.html">
https://mail.openjdk.org/pipermail/jdk-updates-dev/2022-May/014396.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">[2]
<a href="https://github.com/yadongw/jdk17u-dev/tree/backport-riscv-port-v5">https://github.com/yadongw/jdk17u-dev/tree/backport-riscv-port-v5</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ludovic Henry [mailto:ludovic@rivosinc.com]
<br>
<b>Sent:</b> Monday, January 16, 2023 11:37 PM<br>
<b>To:</b> </span><span style="font-size:11.0pt">章翔</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <zhangxiang@iscas.ac.cn><br>
<b>Cc:</b> yangfei@iscas.ac.cn; riscv-port-dev@openjdk.org; wangyadong (E) <yadonn.wang@huawei.com>; jdk-updates-dev@openjdk.java.net<br>
<b>Subject:</b> Re: Re: Backports to jdk11u and jdk17u<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">> However there is one big difference between general jdk17u and riscv secific one: while jdk17u accepts only bug fixes and minor perf improvements, the riscv-port-jdk17u will have to accept larger patches: as risc-v
 port is far from being perfect so far, performance-wise is worse than arm64 port.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I expect to initiate the backport in a dedicated openjdk/riscv-port-jdk17u repository for exactly that. Until the riscv port is considered very stable and performant, we likely want to keep it in a separate repository.
 When stable, we can work with the relevant maintainers of jdk8u, jdk11u and jdk17u for possible integrations.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">> In fact, there were some discussions before on the list about the backporting work [1].<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I missed this one, thanks for pointing it out. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">> I'm Xiang Zhang from the Institute of Software, Chinese Academy of Sciences. I'm backporting jdk8u for RISC-V support. Here is my development repository:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">> <a href="https://github.com/zhangxiang-plct/jdk8u" target="_blank">https://github.com/zhangxiang-plct/jdk8u</a><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">If there is a riscv-port-jdk8u project, would you be interested to contribute there directly?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">In the meantime, I'll contact skara-dev to figure out what it would take to create the riscv-port-jdk11u and riscv-port-jdk17u repositories.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Ludovic<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Jan 16, 2023 at 2:33 PM </span>章翔<span lang="EN-US"> <<a href="mailto:zhangxiang@iscas.ac.cn" target="_blank">zhangxiang@iscas.ac.cn</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span lang="EN-US">Hello,<br>
I'm Xiang Zhang from the Institute of Software, Chinese Academy of Sciences. I'm backporting jdk8u for RISC-V support. Here is my development repository:<br>
<a href="https://github.com/zhangxiang-plct/jdk8u" target="_blank">https://github.com/zhangxiang-plct/jdk8u</a><br>
The current branch for template interpreter backporting is:<br>
<a href="https://github.com/zhangxiang-plct/jdk8u/tree/Fix_javac-temp" target="_blank">https://github.com/zhangxiang-plct/jdk8u/tree/Fix_javac-temp</a><br>
As far as the current progress is concerned, the interpreter has been successfully ported.<br>
For example, I can successfully run "Hello World" under -Xint.<br>
I am currently testing benchmark workloads like dacapo and SPECjvm2008. <br>
My next step is to backport C1&amp;C2 and I'm debugging related code for porting C1&amp;C2.<br>
<br>
Thank you,<br>
Xiang Zhang<br>
<br>
<br>
&gt; -----</span>原始邮件<span lang="EN-US">-----<br>
&gt; </span>发件人<span lang="EN-US">: <a href="mailto:yangfei@iscas.ac.cn" target="_blank">
yangfei@iscas.ac.cn</a><br>
&gt; </span>发送时间<span lang="EN-US">: 2023-01-16 19:31:29 (</span>星期一<span lang="EN-US">)<br>
&gt; </span>收件人<span lang="EN-US">: "Ludovic Henry" <<a href="mailto:ludovic@rivosinc.com" target="_blank">ludovic@rivosinc.com</a>><br>
&gt; </span>抄送<span lang="EN-US">: <a href="mailto:riscv-port-dev@openjdk.org" target="_blank">
riscv-port-dev@openjdk.org</a>, <a href="mailto:yadonn.wang@huawei.com" target="_blank">
yadonn.wang@huawei.com</a>, <a href="mailto:zhangxiang@iscas.ac.cn" target="_blank">
zhangxiang@iscas.ac.cn</a><br>
&gt; </span>主题<span lang="EN-US">: Re: Backports to jdk11u and jdk17u<br>
&gt; <br>
&gt; Hi,<br>
&gt; <br>
&gt; In fact, there were some discussions before on the list about the backporting work [1].<br>
&gt; AFAIK, developers from Huawei already have workable versions of jdk11u &amp; jdk17u on Linux/RISCV platform.<br>
&gt; So I guess the rest of the work should be upstreaming. I think Yadong Wang from Huawei should have more details about that?<br>
&gt; <br>
&gt; Regarding backports to jdk8u, I also wonder whether users are interested to deploy jdk8u on riscv.<br>
&gt; Xiang Zhang from ISCAS (Institute of Software, Chinese Academy of Sciences) is currently working on backporting to jdk8u<br>
&gt; and has achieved some progress. But let me try to get the people involved in this discussion and see.
<br>
&gt; <br>
&gt; Thanks,<br>
&gt; Fei<br>
&gt; <br>
&gt; [1] <a href="https://mail.openjdk.org/pipermail/jdk-updates-dev/2022-May/014391.html" target="_blank">
https://mail.openjdk.org/pipermail/jdk-updates-dev/2022-May/014391.html</a><br>
&gt; <br>
&gt; <br>
&gt; -----Original Messages-----<br>
&gt; From:"Ludovic Henry" <<a href="mailto:ludovic@rivosinc.com" target="_blank">ludovic@rivosinc.com</a>><br>
&gt; Sent Time:2023-01-16 18:04:22 (Monday)<br>
&gt; To: <a href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a><br>
&gt; Cc: <br>
&gt; Subject: Backports to jdk11u and jdk17u<br>
&gt; <br>
&gt; Hello,  <br>
&gt;   As we are seeing more and more adoption of RISC-V, there is a growing need for users to have access to more versions of Java available on RISC-V. Many organizations are still using Java 11 and Java 17 in production and it would be great to have RISC-V
 support available for them too. This would allow them to take advantage of the benefits that RISC-V offers by making their codebase more portable.   <br>
&gt;   <br>
&gt;   <br>
&gt;   Taking a similar approach to AArch64 backports to JDK8u [1], we would want to create the openjdk/riscv-port-jdk11u and openjdk/riscv-port-jdk17u repositories on GitHub. Additionally, we can work with the maintainers of the JDK 11u [2] and JDK 17u [3]
 projects to ensure there is a possible path to getting it merged.  <br>
&gt;   <br>
&gt;   Some questions which I'm not sure about yet:  <br>
&gt;   - Is there a need to backport to JDK 8u?  <br>
&gt;   - What is the engineering cost of the divergence between JDK8u and JDK head for the backporting effort? 
<br>
&gt;   <br>
&gt;   Looking forward to your feedback,  <br>
&gt;   <br>
&gt;   Thank you,  <br>
&gt;   Ludovic  <br>
&gt;   <br>
&gt;   [1] <a href="https://hg.openjdk.java.net/aarch64-port/jdk8u" target="_blank">
https://hg.openjdk.java.net/aarch64-port/jdk8u</a>   <br>
&gt;   [2] <a href="https://wiki.openjdk.org/display/JDKUpdates/JDK11u#JDK11u-maintainersMaintainers" target="_blank">
https://wiki.openjdk.org/display/JDKUpdates/JDK11u#JDK11u-maintainersMaintainers</a>   <br>
&gt;   [3] <a href="https://wiki.openjdk.org/display/JDKUpdates/JDK+17u#JDK17u-maintainers&gt" target="_blank">
https://wiki.openjdk.org/display/JDKUpdates/JDK+17u#JDK17u-maintainers<br>
&gt</a>; <br>
&gt; <br>
&gt; </<a href="mailto:ludovic@rivosinc.com" target="_blank">ludovic@rivosinc.com</a>><br>
</<a href="mailto:ludovic@rivosinc.com" target="_blank">ludovic@rivosinc.com</a>><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</body>
</html>