Skip to content

8380448: Split VM_Version::get_processor_features() in vm_version_x86.cpp into multiple helper routines#31301

Open
ashu-mehra wants to merge 6 commits into
openjdk:masterfrom
ashu-mehra:vm_version_x86-reorg
Open

8380448: Split VM_Version::get_processor_features() in vm_version_x86.cpp into multiple helper routines#31301
ashu-mehra wants to merge 6 commits into
openjdk:masterfrom
ashu-mehra:vm_version_x86-reorg

Conversation

@ashu-mehra
Copy link
Copy Markdown
Contributor

@ashu-mehra ashu-mehra commented May 27, 2026

This patch is reorganizing the code to split get_processor_features() into multiple helper functions. Details are present in the issue https://bugs.openjdk.org/browse/JDK-8380448.
It should not change the behavior of any VM flag, except UseVectorizedHashCodeIntrinsic. The earlier code always set UseVectorizedHashCodeIntrinsic to true if UseAVX >= 2. That means specifying -XX:-UseVectorizedHashCodeIntrinsic on command line wouldn't disable use of this intrinsic. This looks like a bug and has been fixed in this patch.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8380448: Split VM_Version::get_processor_features() in vm_version_x86.cpp into multiple helper routines (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31301/head:pull/31301
$ git checkout pull/31301

Update a local copy of the PR:
$ git checkout pull/31301
$ git pull https://git.openjdk.org/jdk.git pull/31301/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31301

View PR using the GUI difftool:
$ git pr show -t 31301

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31301.diff

Using Webrev

Link to Webrev Comment

….cpp into multiple helper routines

Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
@ashu-mehra
Copy link
Copy Markdown
Contributor Author

I have included the changes for #31284 in this PR to avoid hitting teat failures that #31284 is fixing.

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 27, 2026

👋 Welcome back asmehra! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 27, 2026

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 27, 2026

@ashu-mehra this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout vm_version_x86-reorg
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk Bot added merge-conflict Pull request has merge conflict with target branch serviceability serviceability-dev@openjdk.org hotspot hotspot-dev@openjdk.org labels May 27, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 27, 2026

@ashu-mehra The following labels will be automatically applied to this pull request:

  • hotspot
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 27, 2026

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot. This can be overridden with the /reviewers command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label May 28, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 28, 2026

Webrevs

Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
@openjdk openjdk Bot removed the merge-conflict Pull request has merge conflict with target branch label May 29, 2026
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot hotspot-dev@openjdk.org rfr Pull request is ready for review serviceability serviceability-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

1 participant