Re: MethodType cache and class unloading

2008-10-30 Thread Rémi Forax
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 implem

Re: MethodType cache and class unloading

2008-10-29 Thread John Rose
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

Re: MethodType cache and class unloading

2008-10-29 Thread Rémi Forax
John Rose a écrit : > On Oct 29, 2008, at 8:32 AM, Rémi Forax wrote: > > >> In order to allow to use == between method types, >> MethodType must used a cache to intern MethodType. >> > > Yes, they are like interned strings. At least on some internal token > like a MethodType, we have to

Re: MethodType cache and class unloading

2008-10-29 Thread John Rose
On Oct 29, 2008, at 8:32 AM, Rémi Forax wrote: > In order to allow to use == between method types, > MethodType must used a cache to intern MethodType. Yes, they are like interned strings. At least on some internal token like a MethodType, we have to support == comparison. Otherwise the sig