<Swing Dev> Review Request for 8163261: regression on Linux: java/awt/LightweightDispatcher/LWDispatcherMemoryLeakTest.java
Rajeev Chamyal
rajeev.chamyal at oracle.com
Wed Aug 17 09:20:19 UTC 2016
Hello Amarish,
Can you add this bug id to existing regression test case.
Regards,
Rajeev Chamyal
> On 15-Aug-2016, at 3:13 PM, Ambarish Rapte <ambarish.rapte at oracle.com> wrote:
>
> Hi,
> Please review fix for JDK9,
> Bug: https://bugs.openjdk.java.net/browse/JDK-8163261 <https://bugs.openjdk.java.net/browse/JDK-8163261>
> Webrev: http://cr.openjdk.java.net/~arapte/8163261/webrev.00/ <http://cr.openjdk.java.net/~arapte/8163261/webrev.00/>
>
> Issue:
> Reference to JButton was not getting collected by GC.
>
> Cause:
> A strong reference to objects was held by PainterMultiResolutionCachedImage.
> And the image reference was held by HashMap.
>
> Fix:
> Changing the HashMap to WeakHashMap. Entry to WeakHashMap gets removed after the object has no other strong reference.
>
>
>
> Regards,
> Ambarish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160817/b6f49924/attachment.html>
More information about the swing-dev
mailing list