[jdk17u-dev] Integrated: 8329823: RISC-V: Need to sync CPU features with related JVM flags
Gui Cao
gcao at openjdk.org
Thu Apr 11 12:44:50 UTC 2024
On Wed, 10 Apr 2024 10:03:26 GMT, Gui Cao <gcao at openjdk.org> wrote:
> Hi, The same issue also exists in the jdk17u-dev. I would like to backport [8329823](https://bugs.openjdk.org/browse/JDK-8329823) to jdk17u-dev. With this backport, We synchronize these features with related JVM flags so that "features" string can reflect actual usable CPU features. This is a risc-v specific change. Backport is clean, risk is low.
>
> ### Testing
>
> - [x] Run tier1 tests on SOPHON SG2042 (release)
>
> Results without specifying any jvm flags(After applying this patch)
>
> ----------System.out:(4/135)----------
> WB.getCPUFeatures(): "rv64 i m a f d c"
> CPUInfo.getAdditionalCPUInfo(): ""
> CPUInfo.getFeatures(): [rv64, i, m, a, f, d, c]
> TEST PASSED
>
>
> Results with specifying -XX:-UseRVC (After applying this patch)
>
> ----------System.out:(4/130)----------
> WB.getCPUFeatures(): "rv64 i m a f d"
> CPUInfo.getAdditionalCPUInfo(): ""
> CPUInfo.getFeatures(): [rv64, i, m, a, f, d]
> TEST PASSED
>
> Results with specifying -XX:+UseRVC (After applying this patch)
>
> ----------System.out:(4/135)----------
> WB.getCPUFeatures(): "rv64 i m a f d c"
> CPUInfo.getAdditionalCPUInfo(): ""
> CPUInfo.getFeatures(): [rv64, i, m, a, f, d, c]
> TEST PASSED
This pull request has now been integrated.
Changeset: ed9c1280
Author: Gui Cao <gcao at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/ed9c12809a20b29806eb15f4983c85aef35e1ccb
Stats: 29 lines in 2 files changed: 18 ins; 2 del; 9 mod
8329823: RISC-V: Need to sync CPU features with related JVM flags
Backport-of: b9331cd25ca88b07ce079405f5e3031cf8c13ea6
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/2385
More information about the jdk-updates-dev
mailing list