Reified Lambda Functions
Howard Lovatt
howard.lovatt at iee.org
Thu Jan 7 06:48:06 PST 2010
Anonymous Classes look ideal to me, basically the whole translation is a
series of templates that need some constants patching. This is very similar
to the example John Rose gave (
http://blogs.sun.com/jrose/entry/anonymous_classes_in_the_vm) when he
proposed Anonymous Classes. The purpose of Anonymous Classes is to reduce
the class loading time for similar classes and to allow classes to be
garbage collected (currently they are only collected when their class loader
is collected - typically never).
Rémi Forax napsal(a):
>* No, anonymous classes are classes that aren't stored in a classloader*>* cache.*>* So they can be unloaded if no instance of an anonymous class exist without*>* having to null out a classloader.*>**
Where did you find this? The spec, section 12.7 says:
"A class or interface may be unloaded if and only if its defining class
loader may be reclaimed by the garbage collector as discussed in §12.6."
Z.
--
Zdenek Tronicek
FIT CTU in Prague
More information about the lambda-dev
mailing list