Re: [jvm-l] JSR 292 Goodness: Almost static final field

2012-01-05 Thread Szymon Jachim
Hi, This is cool but made me think again about some things I have already asked on this group some time ago. Does it mean that now with 7u2 the chain invokeExact() -> dynamicInvoker -> MutableCallSite -> SwitchPoint -> constant(x) will be optimistically inlined (until deoptimized for some reas

Re: [jvm-l] JSR292 CookBook

2011-06-10 Thread Szymon Jachim
at if ASM takes care of measuring stack needs it would take careofversio number too. Thanks, Szymon On Fri, Jun 10, 2011 at 12:21 AM, Rémi Forax wrote: > On 06/10/2011 12:15 AM, Szymon Jachim wrote: > > Hello, > I'm trying to run one of the examples using JDK 1.7 previ

Re: [jvm-l] JSR292 CookBook

2011-06-09 Thread Szymon Jachim
Hello, I'm trying to run one of the examples using JDK 1.7 preview (build 145) and I'm getting: "Exception in thread "main" java.lang.ClassFormatError: Class file version does not support constant tag 15 in class file[...]" Which build of JDK7 and ASM framework should I use to experiment with t

Inlining of MethodHandles chain possible/planned?

2011-05-18 Thread Szymon Jachim
I have to questions to you guys about possible (and planned) JIT optimizations for MethodHandles. 1. Assuming that there will be a chain of MH's: mh1(invoker) -> mh2 -> aMethod() and there will be no other references to mh2. Will JIT/GC be able to optimize unneeded mh2 and put into callsi