MethodType cache and class unloading

Rémi Forax forax at univ-mlv.fr
Thu Oct 30 05:21:26 PDT 2008


John Rose a écrit :
> On Oct 29, 2008, at 1:07 PM, Rémi Forax wrote:
>   
>>     MethodHandle findVirtual(Object target, String name, MethodType  
>> type)
>> This trick should avoid to create a MethodType with temporary type.
>>     
>
> That's very good.  I like it partly because it guides implementors  
> toward the main use cases.
>
> One nit:  It should not be called findVirtual, since the two  
> overloadings (class vs. object) would not be semantically  
> consistent.  
You"re right.
> A fine name for this function would be findMethod, since  
> there is nothing "virtual" about the method lookup, because the  
> receiver is fully known.
>   
ok for findMethod.
> -- John
>   
Rémi



More information about the mlvm-dev mailing list