7127687: MethodType leaks memory due to interning
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev