7127687: MethodType leaks memory due to interning
John Rose
john.r.rose at oracle.com
Fri Mar 30 17:12:17 PDT 2012
On Mar 28, 2012, at 5:42 PM, Vitaly Davidovich wrote:
> I think you can use diamond generic inference when declaring the weak intern set
>
Done; thanks.
> Also any reason you didn't use WeakHashMap directly with dummy value to simulate the set? Or wrap the WeakHashMap and synchronize the accessors to it
>
That's been answered already on this thread.
Building collection-like types from reusable components in Java is not a fully-solved problem, and the symptom is lots of code copying. Last time I checked, there wasn't even a reusable Map.Entry abstract class.
— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20120330/66e0dc50/attachment.html
More information about the hotspot-compiler-dev
mailing list