Lambda and JSR 292 method handle

Rémi Forax forax at univ-mlv.fr
Thu Dec 17 06:22:58 PST 2009


Le 17/12/2009 15:18, Mark Thornton a écrit :
> Rémi Forax wrote:
>> This model are severals weak points:
>> 1) VMs are built to manage lot of instance of few classes, this model 
>> creates lot of classes
>>      with few instances. So this model doesn't fit very well with 
>> current VM implementations.
> There was a proposal to update the class file format to better (and 
> more compactly) represent nested/inner classes. This might be expected 
> to improve the ability of VM's to manage large numbers of such classes.

The problem is not only loading time or external class format but also :
- the size of the metadata associated with each class (java.lang.Class) 
at runtime.
- some JIT optimisations that work better is the number of classes in a 
hierachy is small
   (instanceof/cast test or CHA by example).

>
> Mark Thornton
>

Rémi


More information about the lambda-dev mailing list