Integrated: 8256167: Convert JDK use of `Reference::get` to `Reference::refersTo`
Mandy Chung
mchung at openjdk.java.net
Sun Dec 6 00:11:14 UTC 2020
On Thu, 3 Dec 2020 22:54:54 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> This patch replaces some uses of `Reference::get` to `Reference::refersTo` to avoid keeping a referent strongly reachable that could cause unnecessary delay in collecting such object. I only made change in some but not all classes in core libraries when working with Kim on `Reference::refersTo`. The remaining uses are left for the component owners to convert at appropriate time.
This pull request has now been integrated.
Changeset: 972bc3b4
Author: Mandy Chung <mchung at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/972bc3b4
Stats: 60 lines in 12 files changed: 7 ins; 11 del; 42 mod
8256167: Convert JDK use of `Reference::get` to `Reference::refersTo`
Reviewed-by: sspitsyn, shade, dfuchs, alanb, kbarrett
-------------
PR: https://git.openjdk.java.net/jdk/pull/1609
More information about the core-libs-dev
mailing list