RFR: 8293566: RISC-V: Clean up push and pop registers [v5]

Feilong Jiang fjiang at openjdk.org
Mon Sep 12 02:34:56 UTC 2022


> Currently, riscv port has two implementations of `push_reg` and `pop_reg`.
> The bitset version can be replaced with the RegSet version for better readability.
> 
> For example, if we want to push x10 and x11, pushing register with bitset would be like:
> 
> push_reg(0xc00, sp)
> 
> 
> while pushing register with RegSet will be more clear:
> 
> push_reg(RegSet::of(x10, x11), sp);
> 
> 
> Testing:
> 
> - hotspot and jdk ter1 on QEMU without new failures

Feilong Jiang has updated the pull request incrementally with one additional commit since the last revision:

  fix

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10227/files
  - new: https://git.openjdk.org/jdk/pull/10227/files/82765710..ebc74573

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10227&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10227&range=03-04

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/10227.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10227/head:pull/10227

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


More information about the hotspot-dev mailing list