[jdk8u-ri] RFR: 8071507: (ref) Clear phantom reference as soft and weak references do

Mandy Chung mchung at openjdk.java.net
Wed Apr 20 23:52:34 UTC 2022


On Wed, 20 Apr 2022 21:34:36 GMT, Iris Clark <iris at openjdk.org> wrote:

>> These changes backport the following fixes to jdk8u-ri:
>> - 8071507: (ref) Clear phantom reference as soft and weak references do
>> - 8143847: Remove REF_CLEANER reference category
>> 
>> With these changes, phantom references are automatically cleared by the garbage collector as soft and weak references.
>
> jdk/src/share/classes/java/lang/ref/package.html line 49:
> 
>> 47: for implementing canonicalizing mappings that do not prevent their keys (or
>> 48: values) from being reclaimed, and phantom references are for scheduling
>> 49: scheduling post-mortem cleanup actions.
> 
> Is the word "scheduling" repeated at both the end of unchanged line 48 and the beginning of new line 49?

Good catch!   Both Kim and I missed this.

-------------

PR: https://git.openjdk.java.net/jdk8u-ri/pull/4


More information about the jdk8u-dev mailing list