-
Notifications
You must be signed in to change notification settings - Fork 7
8071507: (ref) Clear phantom reference as soft and weak references do #4
Conversation
|
/issue add JDK-8143847 |
|
👋 Welcome back poonam! A progress list of the required criteria for merging this PR into |
|
@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 |
| 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 ➡️ To integrate this PR with the above commit message to the |
|
JDK-8285096 is the CSR. Looks like it was not recognized that blocked the integration. Taking |
|
/integrate |
|
@poonamparhar Pushed as commit ad6cdea. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
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
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk8u-ri pull/4/head:pull/4$ git checkout pull/4Update a local copy of the PR:
$ git checkout pull/4$ git pull https://git.openjdk.java.net/jdk8u-ri pull/4/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4View PR using the GUI difftool:
$ git pr show -t 4Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk8u-ri/pull/4.diff