-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8327729: Remove deprecated xxxObject methods from jdk.internal.misc.Unsafe #18176
Conversation
👋 Welcome back eirbjo! A progress list of the required criteria for merging this PR into |
Webrevs
|
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.
Thanks for the tidying - I agree the time is right.
@eirbjo 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 180 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 |
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.
Removal of unused methods from an internal class, no impact to sun.misc.Unsafe.
…eg/gc/shenandoah/compiler/TestUnsafeLoadStoreMergedHeapStableTests.java
Thanks for reviewing, Martin and Alan. GHA revealed two call sites for I have replaced these with the |
/label add hotspot, hotspot-gc, shenandoah |
@eirbjo The The |
Hello Eirik, I've triggered internal CI testing of the current state of this PR to run tier1, tier2 and tier3. |
Yes, you'll need to run all tests to make sure that there aren't any others, e.g. test/hotspot/jtreg/compiler/stable/TestUnstableStable.java. |
…ence Unsafe.compareAndSetReference instead
I've updated @jaikiran Expect |
OK with me. |
Right, that's the only test that failed (with a compilation error) on all platforms. |
Alan, With @jaikiran running Oracle CI tier1, tier2, tier3 and observing only the now-fixed |
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.
This should wait for @jaikiran approval confirming the test result is good.
Hello Eirik, Mandy, tier1, tier2, tier3 testing of the latest approved state of this PR passed without failures. |
Thanks for helping out with this cleanup effort, Jaikiran, Alan, Mandy, Doug and Martin! /integrate |
Going to push as commit 5b41466.
Your commit was automatically rebased without conflicts. |
Please review this PR which removes the 19 deprecated
xxObject*
alias methods fromjdk.internal.misc.Unsafe
.These methods were added in JDK-8213043 (JDK 12), presumably to allow
jsr166.jar
to be used across JDK versions. This was a follow-up fix after JDK-8207146 had renamed these methods to `xxReference*'.Since OpenJDK is now the single source of truth for
java.util.concurrent
, time has come to remove these deprecated alias methods.This change was initially discussed here: https://mail.openjdk.org/pipermail/core-libs-dev/2024-March/119993.html
Testing: This is a pure deletion of deprecated methods, so the PR includes no test changes and the
noreg-cleanup
label is added in the JBS. I have verified that alltest/jdk/java/util/concurrent/*
tests pass.Tagging @DougLea and @Martin-Buchholz to verify that this removal is timely.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18176/head:pull/18176
$ git checkout pull/18176
Update a local copy of the PR:
$ git checkout pull/18176
$ git pull https://git.openjdk.org/jdk.git pull/18176/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18176
View PR using the GUI difftool:
$ git pr show -t 18176
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18176.diff
Webrev
Link to Webrev Comment