Integrated: 8293524: RISC-V: Use macro-assembler functions as appropriate

Fei Yang fyang at openjdk.org
Fri Sep 9 00:22:46 UTC 2022


On Thu, 8 Sep 2022 03:20:41 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Use of assember functions on riscv can be improved. For example, we use 'fence(0xf, 0xf)' in function TemplateInterpreterGenerator::generate_safept_entry_for to emit a full memory fence instruction. Here we should use 'membar(MacroAssembler::AnyAny)' instead, which would make the code more readable. This also replace some calls to 'li' with 'mv' so that it will be more consistent when moving integer constant.
> 
> Testing: Tier1 tested on Linux-riscv64 SiFive Unmatched board.

This pull request has now been integrated.

Changeset: 43e191d6
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/43e191d64b0094cc1ece61929c32e017ee90c0c8
Stats:     78 lines in 13 files changed: 0 ins; 0 del; 78 mod

8293524: RISC-V: Use macro-assembler functions as appropriate

Reviewed-by: shade, fjiang

-------------

PR: https://git.openjdk.org/jdk/pull/10210


More information about the hotspot-dev mailing list