Thanks Remi, the extra comments really helped
You also mentioned
>
> There is another way to do something similar,
> you can call invokedynamic, use the bootstrap arguments to send
> the primitive values composing the object value and when the
> BSM is called returns a ConstantCallSite with as target a method handle
> created by MethodHandles.constant().
At first glance this seems like adding a lot of overhead ( a method send )
as
a replacement for a simple ldc bytecode. Are you thinking that hotspot
will be
efficient in optimizing this?
I like it theoretically, as I don't have to mess with the class loader,
but will
the overhead be acceptable?
happy new year
mark roos
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev