7127687: MethodType leaks memory due to interning

John Rose john.r.rose at oracle.com
Fri Mar 30 17:02:03 PDT 2012

On Mar 28, 2012, at 11:45 PM, Bengt Rutisson wrote:

> would that solution avoid the WeakReferences? If yes, would it be possible to pick that solution instead?

Yes.  Eventually I would like to reduce the need for acmp-based comparisons on MethodTypes, and perform interning on ClassLoader instances.  This would remove the need for weak references, I think.  That will require a change to the MH invocation path.  The current change is a point fix to amend a storage leak.

> Two minor things as well:
> * Don't think you need "import java.util.HashMap;" anymore.
> * Copyright year 2012 ;-)

Yes; thanks for catching those.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20120330/de49cfca/attachment.html 

More information about the hotspot-compiler-dev mailing list