-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8356275: TestCodeEntryAlignment fails with "Alignment must be <= CodeEntryAlignment" #25180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8356275: TestCodeEntryAlignment fails with "Alignment must be <= CodeEntryAlignment" #25180
Conversation
|
👋 Welcome back mchevalier! A progress list of the required criteria for merging this PR into |
|
@marc-chevalier This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 33 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@marc-chevalier The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
TobiHartmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and trivial to me.
Please make sure to set the fixVersion to 25 or tbd before integrating this. |
|
Changed the Fix version to 25, and the warning seems to have been edited away. So I think it's good. |
|
/integrate Thanks @TobiHartmann review. And my first integrate as committer! |
|
Going to push as commit d930dc5.
Your commit was automatically rebased without conflicts. |
|
@marc-chevalier Pushed as commit d930dc5. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
Sorry for getting to this too late, but we also have the align32() function on x86 that would have worked for situations like this. See also JDK-8273459. |
In the original code, we have an
align 32here.This alignment is pure optimization: we align the head of the loop to make the CPU happier. But if we set
CodeEntryAlignmentto 16, the 32 alignment makes an assert fail. Let's align toCodeEntryAlignmentinstead. It should be 32 by default, but if someone has a different opinion, it's still fine. Anyway, this alignment doesn't seem useful for correctness, so the consequences of an insufficient alignment are small. On the other hand, if someone wants to setCodeEntryAlignmentto 64 for instance, it's also ok: 64-bit alignment is also a 32-bit alignment. We just lose a bit of space for no good reason but the user's input stating that we should prefer 64-bit alignment.It seems questionable to me whether there is any sense in overriding the alignment when using such advanced features, that only exists on modern enough CPUs, so not with a 16-bit alignment, but for consistency, I suppose.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25180/head:pull/25180$ git checkout pull/25180Update a local copy of the PR:
$ git checkout pull/25180$ git pull https://git.openjdk.org/jdk.git pull/25180/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25180View PR using the GUI difftool:
$ git pr show -t 25180Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25180.diff
Using Webrev
Link to Webrev Comment