another question about megamorphic call sites in combination with MethodHandles

Jochen Theodorou blackdrag at gmx.org
Thu Mar 21 23:52:05 PDT 2013


Am 21.03.2013 20:49, schrieb Remi Forax:
[...]
> I suppose you take a look to the instances.
> You can do something similar actually by using invokedynamic +
> a guardWithTest that checks already seen instances instead of doing a
> plain mh.invoke*
> I think Duncan and Georges do something like that in Magik.

the example is supposed to be Java code, so I cannot use invokedynamic 
directly. The goal was to avoid the user having to write try-catch all 
the time. Is then sam conversion the best way here to avoid the problem?

bye blackdrag

-- 
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org



More information about the mlvm-dev mailing list