On Jan 8, 2014, at 12:21 AM, Remi Forax <fo...@univ-mlv.fr> wrote:

> On 01/07/2014 11:54 PM, Christian Thalinger wrote:
>> Can I get some comments on this bug from people who are using ClassValue?
>> 
>> [#JDK-8031043] ClassValue's backing map should have a smaller initial 
>> size - Java Bug System <https://bugs.openjdk.java.net/browse/JDK-8031043>
>> 
>> Is my assumption correct that most language runtimes only attach a 
>> small number of values (maybe only one) or that it wouldn’t matter if 
>> the map would grow as needed?
> 
> I see a good reason to have more than one ClassValue per runtime,
> you want monkey patch realm, you want to be able to modify the class 
> (meta class ?) of your runtime objects but you want several views of the 
> class depending on the source file or the 'module' of the source file. 
> There was some discussions about that in Ruby and Groovy 3 seems to 
> support something like that too.
> 
> Anyway, monkey patching is not a fast operation usually because of the 
> switch point invalidation so if it grows as needed, it should not be a 
> problem.

That’s what I figured.  Thanks.

> 
> Rémi
> 
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev@openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to