Integrated: 8367103: RISC-V: store cpu features in a bitmap

Hamlin Li mli at openjdk.org
Thu Sep 25 12:45:23 UTC 2025


On Mon, 8 Sep 2025 19:54:41 GMT, Hamlin Li <mli at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: d1ea6ea2
Author:    Hamlin Li <mli at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d1ea6ea22d49884bec53f89fad7029400fb1d7f2
Stats:     209 lines in 2 files changed: 138 ins; 4 del; 67 mod

8367103: RISC-V: store cpu features in a bitmap

Reviewed-by: fyang, luhenry

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

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


More information about the hotspot-dev mailing list