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
8071507: (ref) Clear phantom reference as soft and weak references do #94
Conversation
|
/issue add JDK-8143847 |
@poonamparhar |
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.
Spec changes match those expected in JSR 337 MR 4.
Thank you!
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 is an accurate backport. Thanks @poonamparhar !
@poonamparhar This change now passes all automated pre-integration checks. 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 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and 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.
LGTM
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.
Is there a reason for backporting two changes in one PR? I see this was done in 8u42 as well. It makes it harder to review than necessary, notably where the two change the same code in referenceProcessor.cpp
.
Also, SKARA does not appear to be picking this up as a backport, as the "Backport " style was not used (https://wiki.openjdk.org/display/SKARA/Backports). Ideally it would refer to the changeset in 8u42, ad6cdea5ae385623afa86251a8278c9c5274f4c1, but it may have to be one of the three original changesets from jdk
In the code itself, three files are missing copyright header changes where they are newer than the current version: referenceProcessor.hpp
, referenceProcessor.cpp" and
referenceType.hpp`. 8143847 bumps all of these to 2016 and this change should do the same. The other files already have a newer copyright year than in 8143847.
/reviewers 3 reviewer |
@gnu-andrew |
This backport pull request has now been updated with issues from the original commit. |
It could be done in two separate PRs. I agree it would be easier to review if they are two separate PRs. 8143847 mainly removed the cleaner related code. As I was familiar with the code, I didn't ask to do two separate PRs. Will bear that in mind in the future. |
I have updated the copyright years and also fixed the SAKARA backport part. |
There was a change before 8071507 in mainline (and backported to jdk8u) that wasn’t in the RI. That change was rendered moot (the changed code was entirely removed) by 8143847. So if we’d separated 8071507 and 8143847 in the RI we would have needed to first apply that other change to the RI (8071507 without that earlier change would have been wrong), only to have it disappear with 8143847. |
Thanks. Patch looks good and seems SKARA is happier now :-) |
Thanks. Having reviewed the code, that makes sense. |
I've set |
/integrate |
Going to push as commit 0869fc0.
Your commit was automatically rebased without conflicts. |
@poonamparhar Pushed as commit 0869fc0. |
Backport of 8071507 and 8143847 from jdk8u-ri to jdk8u-dev.
With these changes, phantom references are automatically cleared by the garbage collector like soft and weak references.
The changes are clean backport apart from a little manual adjustment for the hunk at line 246 in referenceProcessor.cpp.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev pull/94/head:pull/94
$ git checkout pull/94
Update a local copy of the PR:
$ git checkout pull/94
$ git pull https://git.openjdk.org/jdk8u-dev pull/94/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 94
View PR using the GUI difftool:
$ git pr show -t 94
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/94.diff