Repository navigation
8367717: Cleanup atomic_copy64 - #27642
dev-jonghoonpark wants to merge 4 commits into
Conversation
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
|
👋 Welcome back dev-jonghoonpark! A progress list of the required criteria for merging this PR into |
|
@dev-jonghoonpark 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 /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kimbarrett, @dholmes-ora) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@dev-jonghoonpark 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. |
Webrevs
|
There was a problem hiding this comment.
As described in the issue, this change aligns atomic_copy64 definitions for
zero platforms with those of other platforms.
The issue suggests it might be better to replace calls to atomic_copy64 with
AtomicAccess::store(dst, AtomicAccess::load(src)) (using the new
AtomicAccess nomenclature), and then delete all definitions of
atomic_copy64. And there's a comment agreeing with that suggestion. I think
that's the way to go, rather than what this PR proposes.
|
Thanks for the feedback. |
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
|
This partially fixes https://bugs.openjdk.org/browse/JDK-8369207 as well, but this only does it for |
@jcking - I noticed that problem too, while reviewing this change. I don't care Note that your's currently doesn't perform atomic accesses on the "from" Your PR is also not addressing other platforms with similar issues, such as in Also, this all begs the question of why we have four different copies of these Basically, I think the Copy class is kind of a mess, and that discourages its |
|
Proposal, should we do something similar to AtomicAccess? Provide default naive implementations and let each platform specialize? |
|
@jcking I think AtomicAccess mostly already has platform-specific specializations. A case where it doesn't |
|
@dev-jonghoonpark This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
The discussion seems unresolved, so I’ll convert this PR back to draft for now. |
|
@dev-jonghoonpark This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply issue a |
|
@dev-jonghoonpark This pull request has been inactive for more than 16 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
|
@dev-jonghoonpark Can we re-open this as-is and keep the scope simply to replacing atomic_copy64 with the |
|
Sorry for the late reply, I missed your comment. /open |
|
@dev-jonghoonpark This pull request is now open |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
kimbarrett
left a comment
There was a problem hiding this comment.
I agree with @dholmes-ora, this change looks fine in its current form
(except the copyrights need to be updated now). There are followups
that can be done for further improvement, but this is a good
incremental change.
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
|
@kimbarrett Thanks for checking. I’ve updated the copyright. Could you please re-review and approve? |
dholmes-ora
left a comment
There was a problem hiding this comment.
LGTM2. Thanks
(Nice to hear from you @kimbarrett !)
|
/integrate |
|
@dev-jonghoonpark |
|
/sponsor |
|
Going to push as commit ec081d9.
Your commit was automatically rebased without conflicts. |
|
@dholmes-ora @dev-jonghoonpark Pushed as commit ec081d9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
related jira issue: https://bugs.openjdk.org/browse/JDK-8367717
Changes
atomic_copy64withAtomicAccess::store(dst, AtomicAccess::load(src))Verification
make run-test TEST="gtest:StubRoutines*"make run-test TEST="gtest:AtomicAccess*"Please let me know if there are any additional or more appropriate verification steps I should perform.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27642/head:pull/27642$ git checkout pull/27642Update a local copy of the PR:
$ git checkout pull/27642$ git pull https://git.openjdk.org/jdk.git pull/27642/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27642View PR using the GUI difftool:
$ git pr show -t 27642Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27642.diff
Using Webrev
Link to Webrev Comment