[jdk22u] Integrated: 8329823: RISC-V: Need to sync CPU features with related JVM flags

Gui Cao gcao at openjdk.org
Thu Apr 11 01:49:20 UTC 2024


On Wed, 10 Apr 2024 07:32:24 GMT, Gui Cao <gcao at openjdk.org> wrote:

> Hi, The same issue also exists in the  jdk22u. I would like to backport [8329823](https://bugs.openjdk.org/browse/JDK-8329823) to jdk22u. With this backport,  We synchronize these features with related JVM flags so that "features" string can reflect actual usable CPU features.
> 
> ### 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 PASSE
> 
> 
> 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: bcf0d256
Author:    Gui Cao <gcao at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk22u/commit/bcf0d256dd2962180810efa7e694fe6fe0cf7b9e
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/jdk22u/pull/135


More information about the jdk-updates-dev mailing list