Charles Oliver Nutter a écrit :
> Rémi Forax wrote:
>   
>> I have seen an impressive boost by generating StackMap infos,
>> particularly when generated codes use overlaped exception handlers.
>>     
>
> Can you describe how to do that and exactly what it is? I'm not familiar 
> with it.
>   
Java 1.6 (JSR202) introduces a new verifier named split-verifier 
(technically this technology comes from J2ME)
that is able to verify the bytecode in one pass using informations 
stored in a special
attribute named StackMap.
https://jdk.dev.java.net/verifier.html

I use ASM that is able to generate StackMap using flag |COMPUTE_FRAMES|
when creating a ClassWriter.
The algorithme used by ASM is described here:
http://asm.objectweb.org/doc/developer-guide.html#controlflow

Unlike JRuby, I don't generate code at runtime so
I have no idea about the overhead introduced by enabling stack map 
computation.

> - Charlie
>   
Rémi

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to