On Wed, Mar 16, 2011 at 3:36 AM, Jochen Theodorou <[email protected]> wrote: > The result, should I have understood correctly, will be, that each > scriptn will cause the former scriptn (lastScript) to be referenced in a > way that prefents that from being garbage collected, even though scriptn > does not reference lastScript directly and there will be no reference to > the class loader as well. So in theory the last script could be garbage > collected but the MethodHandles prevent that from happening.
You understand correctly. But presumably your existing call site caching has this same side effect, yes? Or is your call site cache weak referenced? - Charlie _______________________________________________ mlvm-dev mailing list [email protected] http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
