Le 07/11/2010 18:48, assembling signals a écrit : > 07.11.10, 14:58, "Rémi Forax"<fo...@univ-mlv.fr>: > > >> Works with javac. Do you use it ? >> > Hm, strange, I thought Netbeans would use the usual javac, but now I guess it > uses > some API calls to compile files. Because using javac from command line works > indeed! >
NetBeans embeds its own version of javac. [...] >> In that case, you can generate bytecode at runtime ane becuase you do that >> at runtime you know at least the number of parameter. >> > Well, personally I, can't generate bytecode at runtime ;) > Was I be able to do this, I wouldn't experiment with invokedynamic in first > place ;) > > Can you please comment on invokeVarargs' performance? > I have run your test, basically invokeVarargs is not inlined because the method is too big. John, I wonder if invokeVarargs() with 0 argument should use invokeGeneric instead of the genericInvoker. Also it seems that there is no check in the VM that the default target of a switch can be not taken. Rémi _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev