Jochen Theodorou a écrit :
> Rémi Forax schrieb:
> [...]
>   
>> You can also try the backport,
>> source code is here :
>> http://code.google.com/p/jvm-language-runtime/source/browse/#svn/trunk/invokedynamic-backport
>> compile with ant
>> and run it (with jdk5+) like this :
>>
>> java -javaagent:lib/jsr292-backport.jar MyMainClass
>>
>> It retro-weaves 1.7 compatible classes to run on jdk5+ VM.
>>     
>
> nice, but didn't John Rose kind of say such agents are purely evil? 
>   
No, it's just bad :) [see below]

> Well, doesn't matter atm. What I wanted to test is how the stack is 
> shown if a call goes through a MethodHandle. 

If it's a methandle.invoke() or an invokedynamic you will not see it.
Other method adapters are like a standard method calls but some are 
optimized
(like bound method handle) and doesn't appear in the stack trace.

> That is for things like 
> Class.forName(String) for example. The backport won't help here if it is 
> normal java, since I then know that it will add additional stack frame 
> layers, that will influence what Class.forName will choose.
>   
I don't clearly understand what is your problem.
MethodHandles are classes from java.dyn or sun.dyn and thus loaded by 
the bootstrap classloader
so in my opinion, they will not have influence on Class.forName.

>   
>> Currently you have to compile against latest classes found
>> in mlvm repo but I suppose I can provide a jar with empty skeletons
>> just to compile.
>>
>> All method handle adapters are implemented but some of them
>> doesn't run at full speed (especially permute/spread/collect).
>>
>> I've just commited changes to enable bound object to be JITed.
>> (a more convoluted patch than I want :)
>>     
>
> I think I should very soon have a very intense look at your code ;)
>
> bye Jochen
>
>   

cheers,
Rémi

-----------------------------------------------------------------------------------------------------------------------------*
Dr. Egon Spengler*: There's something very important I forgot to tell you.*
Dr. Peter Venkman*: What?*
Dr. Egon Spengler*: Don't cross the streams.*
Dr. Peter Venkman*: Why?*
Dr. Egon Spengler*: It would be bad.*
Dr. Peter Venkman*: I'm a little fuzzy on the whole "good/bad" thing 
here. What do you mean, "bad"?*
Dr. Egon Spengler*: Try to imagine all life as you know it stopping 
instantaneously and every molecule in your body exploding at the speed 
of light.*
Dr. Ray Stantz*: Total protonic reversal!*
Dr. Peter Venkman*: That's bad. Okay. All right, important safety tip. 
Thanks, Egon.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com
To unsubscribe from this group, send email to 
jvm-languages+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to