RFR: 8367103: RISC-V: store cpu features in a bitmap [v4]

Hamlin Li mli at openjdk.org
Wed Sep 17 08:18:24 UTC 2025


> Hi,
> Can you help to review this patch?
> 
> Currently, the cpu features of riscv are stored in separate RVFeature subclasses.
> But to support the store/restore CPU features for aot in the future, we need to store the cpu features in a continuous memory.
> As the riscv extensions are introduced continuously, I think it's better to do it via an simple bitmap at the beginning.
> Currently, just suppose the non-extension features will not be stored in aot image, so I also split the extension and non-extenion features. When we implement the related aot feature in the short future, we can revisit the way of splitting the features. Currently, just change the storage way of cpu features, lay the foundation for future aot.
> 
> Thanks

Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:

  fix typo

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27152/files
  - new: https://git.openjdk.org/jdk/pull/27152/files/0ef68423..6b33210c

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

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

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


More information about the hotspot-dev mailing list