RFR: 8332900: RISC-V: refactor nativeInst_riscv.cpp and macroAssembler_riscv.cpp [v4]
Robbin Ehn
rehn at openjdk.org
Mon Jun 3 06:25:08 UTC 2024
On Fri, 31 May 2024 14:40:15 GMT, Hamlin Li <mli at openjdk.org> wrote:
>> Hi,
>> Can you help to review the patch?
>> Currently, code in nativeInst_riscv.cpp and macroAssembler_riscv.cpp call each other, which is not right for readability and maintainance.
>> After refactoring, basically only code in nativeInst_riscv.cpp calls code in macroAssembler_riscv.cpp, but not in reverse direction.
>>
>> Thanks!
>>
>> * Tests are still running, so far so good.
>
> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
>
> adjust accessibility
Hi Halim, this will cause merge hell for me in https://github.com/openjdk/jdk/pull/19453.
You have a bunch of stuff in hpp files which can be moved to cpp file, to keep headers clean and not export so.
E.g. check_movptr1_data_dependency is only used in macroAssembler_riscv.cpp, now everyone including MASM.hpp get copy of this method (which is compiled away). I.e. if you want it to be a member method move the definition to cpp and just keep the declaration in hpp.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19459#issuecomment-2144368132
More information about the hotspot-dev
mailing list