<Swing Dev> javax.swing.RepaintManager volatileMap

Vladimir Sitnikov sitnikov.vladimir at gmail.com
Wed Aug 28 11:00:43 UTC 2013


Hi,

In the heapdump of SQL Developer 4.0 I found that RepaintManager holds 23
items of sun.awt.image.BufImgVolatileSurfaceManager 5-10MiB each.

All the images are contained in "volatileMap" HashMap.

I identified that the key of the map is sun.awt.Win32GraphicsConfig and
that class does not override equals/hashCode.

Can you please tell me if "using GraphicsConfig as a key knowing the fact
this key does not ovveride equals/hashCode" is intentional or not?

I have checked several keys of the map (Win32GraphicsConfig) and they have
identical value (even screen and sTypeOrig references point to the same
objects), however as the Win32GraphicsConfig objects itself are different
java objects they occupy different entries in valueMap.

-- 
Regards,
Vladimir Sitnikov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20130828/b2a4d635/attachment.html>


More information about the swing-dev mailing list