<div dir="ltr">> I suggest to do an initial backport PR including 1, 2, 3 and 4. And the list of patches in 5 require more effort from anyone interested to backport one by one, if necessary.<br><div><br></div><div>Thank you for all of these! </div><div><br></div><div>I would say we start with 1, 2, 3, and 4. For 5, I'll want to take a more in depth look at each of these changes. Discussing these on the mailing list is the most appropriate I think.</div><div><br></div><div><a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:goetz.lindenmaier@sap.com" tabindex="-1">@Lindenmaier, Goetz</a> , what's the policy for changes which are in the architecture specific folders (os_cpu/linux_riscv and cpu/riscv)? I understand the general push to keep these to a minimum, but are there other aspects to the tradeoffs we want to make (performance, features, readability of the code, etc.)?<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 2, 2023 at 10:46 AM wangyadong (E) <<a href="mailto:yadonn.wang@huawei.com">yadonn.wang@huawei.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-4806827823332622230">





<div lang="ZH-CN">
<div class="m_-4806827823332622230WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I have a “ready-to-go” recently-rebased backport version of jdk17u-dev for riscv (<a href="https://github.com/yadongw/jdk17u-dev/tree/backport-riscv-port-v6" target="_blank">https://github.com/yadongw/jdk17u-dev/tree/backport-riscv-port-v6</a>).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">It based on the initial implementation of JEP-422 with some modifications for backport to 17u, and included a collection of patches that I think
 are necessary. We can discuss whether it's appropriate.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I suggest to do an initial backport PR including 1, 2, 3 and 4. And the list of patches in 5 require more effort from anyone interested to backport
 one by one, if necessary.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Looking forward to your comments.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="m_-4806827823332622230MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>1.<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The initial patch<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit 84efeb4e3e0e6b0c03f5ab043f276cf537de3b81<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Sat Apr 2 15:58:06 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    8276799: Implementation of JEP 422: Linux/RISC-V Port<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="m_-4806827823332622230MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>2.<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> remove features that do not belong to jdk 17<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit ce9864243a9d75589ed444cd439c02d2ae710ff9<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Thu Apr 7 20:33:59 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    revert 8277417: C1 LIR instruction for load-klass<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit 441d0e77ad7579849c9533f15ca44b3843fb55af<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Thu Apr 7 20:47:42 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    revert 8278387: Implement UseHeavyMonitors consistently<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit 492b705ba21b5022207f361e9c4c3e4d23896ad5<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Thu Apr 7 21:09:05 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    revert 8227369: pd_disjoint_words_atomic() needs to be atomic<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit 0fec342dba256726e3b2e592533bc5deb9c58e84<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Thu Apr 7 21:14:51 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    revert 8258192: Obsolete the CriticalNatives flag<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit cc6cd9de04f5b6ff8612fc1691f6226942863b30<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Thu Apr 7 21:12:43 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    revert 8281632: riscv: Improve interpreter stack banging<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit ac8fc147f82f78e7cab87e5f1301d7510348600e<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Sat Apr 23 11:37:50 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    revert 8283364: Intrinsify countPositives<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="m_-4806827823332622230MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>3.<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">add features that belongs to jdk 17<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit 930df079ec09715c65a93ce20893fb58bf5e8e89<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Fri Apr 1 12:04:41 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    enable the biased locking<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="m_-4806827823332622230MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>4.<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> Wrap modifications to shared code under RISCV and revert changes to other platforms<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">commit 5a8be1b201142c0f0c245d0ff2d01c5290a69e95<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Author: yadongw <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Date:   Sun May 22 23:38:56 2022 +0800<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:9pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">isolate modification to other platforms<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:9pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="m_-4806827823332622230MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>5.<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Patch list for backport<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">5.1 patch for bugfix<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8282306: os::is_first_C_frame(frame*) crashes on invalid link access<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8282477: vmassert(_last_Java_pc == NULL, "already walkable"); fails with async profiler<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293007: riscv: failed to build after JDK-8290025<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293100: RISC-V: Need to save and restore callee-saved FloatRegisters in StubGenerator::generate_call_stub<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8284191: Replace usages of 'a the' in hotspot and java.base<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8285437: riscv: Fix MachNode size mismatch for MacroAssembler::verify_oops*<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8287552: riscv: Fix comment typo in li64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8287970: riscv: jdk/incubator/vector/*VectorTests failing<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8290496: riscv: Fix build warnings-as-errors with GCC 11<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8291893: riscv: remove fence.i used in user space<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8291947: riscv: fail to build after JDK-8290840<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294012: RISC-V: get/put_native_u8 missing the case when address&7 is 6<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294083: RISC-V: Minimal build failed with --disable-precompiled-headers<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294087: RISC-V: RVC: Fix a potential alignment issue and add more alignment assertions for the patchable calls/nops<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294190: Incorrect check messages in SharedRuntime::generate_uncommon_trap_blob<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295016: Make the arraycopy_epilogue signature consistent with its usage<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295468: RISC-V: Minimal builds are broken<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295926: RISC-V: C1: Fix LIRGenerator::do_LibmIntrinsic<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8296448: RISC-V: Fix temp usages of heapbase register killed by MacroAssembler::en/decode_klass_not_null<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8296771: RISC-V: C2: assert(false) failed: bad AD file<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="m_-4806827823332622230MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>5.2<span style="font:7pt "Times New Roman"">  
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Other refactoring patches<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8290137: riscv: small refactoring for add_memory_int32/64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8292867: RISC-V: Simplify weak CAS return value handling<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293050: RISC-V: Remove redundant non-null assertions about macro-assembler<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293290: RISC-V: Explicitly pass a third temp register to MacroAssembler::store_heap_oop<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293474: RISC-V: Unify the way of moving function pointer<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293524: RISC-V: Use macro-assembler functions as appropriate<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293566: RISC-V: Clean up push and pop registers<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293769: RISC-V: Add a second temporary register for BarrierSetAssembler::load_at<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293781: RISC-V: Clarify types of calls<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8293840: RISC-V: Remove cbuf parameter from far_call/far_jump/trampoline_call<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294086: RISC-V: Cleanup InstructionMark usages in the backend<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294100: RISC-V: Move rt_call and xxx_move from SharedRuntime to MacroAssembler<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294187: RISC-V: Unify all relocations for the backend into AbstractAssembler::relocate()<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294366: RISC-V: Partially mark out incompressible regions<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294430: RISC-V: Small refactoring for movptr_with_offset<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8294492: RISC-V: Use li instead of patchable movptr at non-patchable callsites<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295110: RISC-V: Mark out relocations as incompressible<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295270: RISC-V: Clean up and refactoring for assembler functions<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295273: Remove unused argument in [load/store]_sized_value on aarch64 and riscv<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295396: RISC-V: Cleanup useless CompressibleRegions<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295703: RISC-V: Remove implicit noreg temp register arguments in MacroAssembler<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">8295968: RISC-V: Rename some assembler intrinsic functions for RVV 1.0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Vladimir Kempik [mailto:<a href="mailto:vladimir.kempik@gmail.com" target="_blank">vladimir.kempik@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, February 1, 2023 5:35 PM<br>
<b>To:</b> <a href="mailto:yangfei@iscas.ac.cn" target="_blank">yangfei@iscas.ac.cn</a><br>
<b>Cc:</b> Ludovic Henry <<a href="mailto:ludovic@rivosinc.com" target="_blank">ludovic@rivosinc.com</a>>; Lindenmaier, Goetz <<a href="mailto:goetz.lindenmaier@sap.com" target="_blank">goetz.lindenmaier@sap.com</a>>;
</span><span style="font-size:11pt">章翔</span><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> <<a href="mailto:zhangxiang@iscas.ac.cn" target="_blank">zhangxiang@iscas.ac.cn</a>>; <a href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a>; wangyadong (E) <<a href="mailto:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>>; <a href="mailto:jdk-updates-dev@openjdk.java.net" target="_blank">jdk-updates-dev@openjdk.java.net</a><br>
<b>Subject:</b> Re: Backports to jdk11u and jdk17u<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Hello<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">After initial jep-422. we saw few bug-fixes coming in, they were critical for risc-v.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">We should probably identify and include them into the port ?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">For example:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><a href="https://bugs.openjdk.org/browse/JDK-8293100" target="_blank">https://bugs.openjdk.org/browse/JDK-8293100</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Regards, Vladimir<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
<u></u><u></u></span></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal" style="margin-right:36pt;margin-left:36pt;margin-bottom:0.0001pt">
<span lang="EN-US">1 </span>февр<span lang="EN-US">. 2023 </span>г<span lang="EN-US">.,
</span>в<span lang="EN-US"> 05:23, <a href="mailto:yangfei@iscas.ac.cn" target="_blank">yangfei@iscas.ac.cn</a>
</span>написал<span lang="EN-US">(</span>а<span lang="EN-US">):<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-right:36pt;margin-bottom:5pt;margin-left:36pt">
<span lang="EN-US">Hi all,<br>
<br>
 Good news is that following three repos have been created by ops and should be ready for use!<br>
<br>
   <a href="https://github.com/openjdk/riscv-port-jdk17u" target="_blank">https://github.com/openjdk/riscv-port-jdk17u</a><br>
   <a href="https://github.com/openjdk/riscv-port-jdk11u" target="_blank">https://github.com/openjdk/riscv-port-jdk11u</a><br>
   <a href="https://github.com/openjdk/riscv-port-jdk8u" target="_blank">https://github.com/openjdk/riscv-port-jdk8u</a><br>
<br>
 They are seeded with jdk{17, 11, 8}u-dev repos respectively. <br>
 We should start from riscv-port-jdk17u. And I have created a riscv-port branch in this repo for future 17u backporting work.
<br>
 As mentioned by Lindenmaier Goetz, the initial backport should be restricted to the changes that are definitely needed to get it working.
<br>
 Also, changes to shared code should be kept to a minimum. <br>
 Please let me know if there are other things missed. <br>
<br>
Thanks,<br>
Fei Yang<br>
<br>
&gt; -----Original Messages-----<br>
&gt; From: <a href="mailto:yangfei@iscas.ac.cn" target="_blank">yangfei@iscas.ac.cn</a><br>
&gt; Sent Time: 2023-01-18 20:47:15 (Wednesday)<br>
&gt; To: "Ludovic Henry" <<a href="mailto:ludovic@rivosinc.com" target="_blank">ludovic@rivosinc.com</a>><br>
&gt; Cc: "Lindenmaier, Goetz" <<a href="mailto:goetz.lindenmaier@sap.com" target="_blank">goetz.lindenmaier@sap.com</a>>, "</span>章翔<span lang="EN-US">" <<a href="mailto:zhangxiang@iscas.ac.cn" target="_blank">zhangxiang@iscas.ac.cn</a>>, "<a href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a>"
 <<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:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>>, "<a href="mailto:jdk-updates-dev@openjdk.java.net" target="_blank">jdk-updates-dev@openjdk.java.net</a>"
 <<a href="mailto:jdk-updates-dev@openjdk.java.net" target="_blank">jdk-updates-dev@openjdk.java.net</a>><br>
&gt; Subject: Re: Re: Re: Re: Backports to jdk11u and jdk17u<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-18 17:05:58 (Wednesday)<br>
&gt; To: "Lindenmaier, Goetz" <<a href="mailto:goetz.lindenmaier@sap.com" target="_blank">goetz.lindenmaier@sap.com</a>><br>
&gt; Cc: "<a href="mailto:yangfei@iscas.ac.cn" target="_blank">yangfei@iscas.ac.cn</a>" <<a href="mailto:yangfei@iscas.ac.cn" target="_blank">yangfei@iscas.ac.cn</a>>, "</span>章翔<span lang="EN-US">" <<a href="mailto:zhangxiang@iscas.ac.cn" target="_blank">zhangxiang@iscas.ac.cn</a>>, "<a href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a>"
 <<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:yadonn.wang@huawei.com" target="_blank">yadonn.wang@huawei.com</a>>, "<a href="mailto:jdk-updates-dev@openjdk.java.net" target="_blank">jdk-updates-dev@openjdk.java.net</a>"
 <<a href="mailto:jdk-updates-dev@openjdk.java.net" target="_blank">jdk-updates-dev@openjdk.java.net</a>><br>
&gt; Subject: Re: Re: Re: Backports to jdk11u and jdk17u<br>
&gt; <br>
&gt; Hi,  <br>
&gt; <br>
&gt; &gt;&gt; It would be great to see a complete list of<br>
&gt; &gt;&gt; changes that need to be backported.<br>
&gt; &gt; Let's make sure we can bake the backports in a dedicated repository so that we can have a better sense on what the changes would entail.  <br>
&gt; &gt; <br>
&gt; &gt;  After reaching to skara-dev, the only thing needed to create these repositories is for the riscv-project to contact ops at openjdk dot org. @Fei Yang, I am assuming you'd need to contact them being the riscv-port lead.<br>
&gt; <br>
&gt;  Sure! I just sent an email to <a href="mailto:ops@openjdk.java.net" target="_blank">ops@openjdk.java.net</a> requesting creation of following three new repos:<br>
&gt; <br>
&gt;   1. <a href="https://github.com/openjdk/riscv-port-jdk17u" target="_blank">https://github.com/openjdk/riscv-port-jdk17u</a><br>
&gt;   2. <a href="https://github.com/openjdk/riscv-port-jdk11u" target="_blank">https://github.com/openjdk/riscv-port-jdk11u</a><br>
&gt;   3. <a href="https://github.com/openjdk/riscv-port-jdk8u" target="_blank">https://github.com/openjdk/riscv-port-jdk8u</a><br>
&gt; <br>
&gt; Let's see :-)<br>
&gt; <br>
&gt; Thanks,<br>
&gt; Fei<br>
&gt; <<a href="mailto:/jdk-updates-dev@openjdk.java.net" target="_blank">/jdk-updates-dev@openjdk.java.net</a>><<a href="mailto:/yadonn.wang@huawei.com" target="_blank">/yadonn.wang@huawei.com</a>><<a href="mailto:/riscv-port-dev@openjdk.org" target="_blank">/riscv-port-dev@openjdk.org</a>><<a href="mailto:/zhangxiang@iscas.ac.cn" target="_blank">/zhangxiang@iscas.ac.cn</a>><<a href="mailto:/yangfei@iscas.ac.cn" target="_blank">/yangfei@iscas.ac.cn</a>><<a href="mailto:/goetz.lindenmaier@sap.com" target="_blank">/goetz.lindenmaier@sap.com</a>><<a href="mailto:/ludovic@rivosinc.com" target="_blank">/ludovic@rivosinc.com</a>><br>
<<a href="mailto:/jdk-updates-dev@openjdk.java.net" target="_blank">/jdk-updates-dev@openjdk.java.net</a>><<a href="mailto:/yadonn.wang@huawei.com" target="_blank">/yadonn.wang@huawei.com</a>><<a href="mailto:/riscv-port-dev@openjdk.org" target="_blank">/riscv-port-dev@openjdk.org</a>><<a href="mailto:/zhangxiang@iscas.ac.cn" target="_blank">/zhangxiang@iscas.ac.cn</a>><<a href="mailto:/goetz.lindenmaier@sap.com" target="_blank">/goetz.lindenmaier@sap.com</a>><<a href="mailto:/ludovic@rivosinc.com" target="_blank">/ludovic@rivosinc.com</a>><u></u><u></u></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div>

</div></blockquote></div>