-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
8297912: HotSpot Style Guide should permit alignas (Second Proposal Attempt) #11446
Conversation
👋 Welcome back jwaters! A progress list of the required criteria for merging this PR into |
@TheShermanTanker The following labels 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 lists. If you would like to change these labels, use the /label pull request command. |
/label remove build |
@TheShermanTanker |
Webrevs
|
Hi Julian, could you give this PR/JBS please a speaking name, e.g. "HotSpot Style Guide should permit alignas Also, @rose00 voiced concerns in the original PR (#11315 (comment)) which should be addressed first. I cautiously share his concerns for the moment. Cheers, Thomas |
+1
I had somewhat similar concerns to @rose00 at one point. We have The proposal seems like a lot of words, describing significant restrictions. So I approve of this change, though I won't be heartbroken if it is rejected. |
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.
@TheShermanTanker 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 201 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 |
I actually missed John's concerns, but it seems like @kimbarrett has already beaten me to it in remarking that there's almost no difference (if at all) between I feel like this is one of those instances where there isn't much that would make one lean more towards either rejecting or accepting the change, but |
I would vote for using C++ feature which provides similar functionality just to avoid supporting our own implementation. |
A benefit of One could obtain that from a type using Also, the alternative of using std::aligned_storage or std::aligned_union has Another advantage compared to our macro workaround is that this isn't |
The MSVC implementation of I happened to run into both the limitation to alignment values problem and |
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.
Okay, I'm convinced.
Don't mind me, just making it look a little better |
I'll leave integration of this up to someone else from the HotSpot Group, for convenience |
/integrate delegate |
@TheShermanTanker Integration of this pull request has been delegated and may be completed by any project committer using the /integrate pull request command. |
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.
Per process I approve these changes.
/integrate |
Going to push as commit ae8988e.
Your commit was automatically rebased without conflicts. |
@kimbarrett Now that alignas has officially been approved, is there anything I need to do with 8250269: Replace ATTRIBUTE_ALIGNED with alignas? I'm not sure if there's anything else needed on my part for that issue |
8252584 was integrated too early due to a mistake on my part, we should redo it and go through the proper approval process this time
(The changes in this commit are exactly identical to 8252584)
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11446/head:pull/11446
$ git checkout pull/11446
Update a local copy of the PR:
$ git checkout pull/11446
$ git pull https://git.openjdk.org/jdk pull/11446/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11446
View PR using the GUI difftool:
$ git pr show -t 11446
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11446.diff