<AWT Dev> [9] Review Request: 8041654 OutOfMemoryError: RepainManager doesn't clean up cache of volatile images

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu May 21 12:11:46 UTC 2015


Hello.
Please review the fix for jdk9.
RepainManager adds a listener to the SGE.DisplayChangedListener() and it 
don't hold a strong reference to this listener. The problem is that SGE 
holds a listeners in the WeakHashMap so sometimes the listeners can be 
cleared before they are called. Same issue exists in XToolkit.

Bug: https://bugs.openjdk.java.net/browse/JDK-8041654
Webrev can be found at: http://cr.openjdk.java.net/~serb/8041654/webrev.02

-- 
Best regards, Sergey.



More information about the awt-dev mailing list