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 #4
Conversation
/issue add JDK-8143847 |
|
@poonamparhar The issue |
@poonamparhar |
Webrevs
|
/csr |
@mlchung has indicated that a compatibility and specification (CSR) request is needed for this pull request. |
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.
The change looks good to me.
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.
@poonamparhar |
/issue remove JDK-8285096 |
@poonamparhar |
@@ -46,8 +46,7 @@ <h2>Package Specification</h2> | |||
references are for implementing memory-sensitive caches, weak references are | |||
for implementing canonicalizing mappings that do not prevent their keys (or | |||
values) from being reclaimed, and phantom references are for scheduling | |||
pre-mortem cleanup actions in a more flexible way than is possible with the | |||
Java finalization mechanism. | |||
scheduling post-mortem cleanup actions. |
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 the word "scheduling" repeated at both the end of unchanged line 48 and the beginning of new line 49?
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.
Good catch! Both Kim and I missed this.
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 Iris. Removed the duplicate "scheduling".
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.
Update spec looks good.
/issue add JDK-8285096 |
@poonamparhar |
/csr unneeded |
/issue remove JDK-8285096 |
@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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
JDK-8285096 is the CSR. Looks like it was not recognized that blocked the integration. Taking |
/integrate |
@poonamparhar Pushed as commit ad6cdea. |
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.
These changes backport the following fixes to jdk8u-ri:
With these changes, phantom references are automatically cleared by the garbage collector as soft and weak references.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk8u-ri pull/4/head:pull/4
$ git checkout pull/4
Update a local copy of the PR:
$ git checkout pull/4
$ git pull https://git.openjdk.java.net/jdk8u-ri pull/4/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4
View PR using the GUI difftool:
$ git pr show -t 4
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk8u-ri/pull/4.diff