Integrated: 8362572: Delete the usage of "sun.java2d.reftype" from the sun.java2d.Disposer
Sergey Bylokhov
serb at openjdk.org
Tue Jul 22 00:41:33 UTC 2025
On Fri, 18 Jul 2025 19:07:19 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> Just a code cleanup to reduce the amount of code we need to care about, test, and support.
>
> The class sun.java2d.Disposer can use either weak or phantom references. For many years it has used phantom references by default.
>
> One reason why weak references were supported is because phantom references keep a strong reference to the object until the reference is added to the reference queue and cleared. This behavior changed after the fix for [JDK-8071507](https://bugs.openjdk.org/browse/JDK-8071507). Now both weak and phantom references behave the same way when it comes to clearing the reference to the object.
This pull request has now been integrated.
Changeset: 7d7d308d
Author: Sergey Bylokhov <serb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7d7d308d9ab6f06ebdab0f5967a5bfc007d4217f
Stats: 27 lines in 1 file changed: 2 ins; 21 del; 4 mod
8362572: Delete the usage of "sun.java2d.reftype" from the sun.java2d.Disposer
Reviewed-by: prr, aivanov
-------------
PR: https://git.openjdk.org/jdk/pull/26394
More information about the client-libs-dev
mailing list