Re: jsr instructions in OpenJDK 6 classes

2012-02-02 Thread Kelly O'Hair
On Feb 2, 2012, at 8:59 AM, Andrew Haley wrote: > On 02/02/2012 04:52 PM, Joe Darcy wrote: >> stackmaps are used. >> >> I haven't delved into the OpenJDK 6 build before writing this email, but >> I suspect some of the classes in rt.jar are compiled with -target 5, but >> javac in OpenJDK 6 def

Re: jsr instructions in OpenJDK 6 classes

2012-02-02 Thread Joe Darcy
On 02/02/2012 08:59 AM, Andrew Haley wrote: On 02/02/2012 04:52 PM, Joe Darcy wrote: stackmaps are used. I haven't delved into the OpenJDK 6 build before writing this email, but I suspect some of the classes in rt.jar are compiled with -target 5, but javac in OpenJDK 6 defaults to -target 6 so

Re: jsr instructions in OpenJDK 6 classes

2012-02-02 Thread Andrew Haley
On 02/02/2012 04:52 PM, Joe Darcy wrote: > stackmaps are used. > > I haven't delved into the OpenJDK 6 build before writing this email, but > I suspect some of the classes in rt.jar are compiled with -target 5, but > javac in OpenJDK 6 defaults to -target 6 so you wouldn't see jsr > instruction

Re: jsr instructions in OpenJDK 6 classes

2012-02-02 Thread Joe Darcy
Hi Andrew, Whether or not the jsr instruction is used is -target specific; version 50.0 class files from -target 6 and later do not support jsr/ret since stackmaps are used. I haven't delved into the OpenJDK 6 build before writing this email, but I suspect some of the classes in rt.jar are c

jsr instructions in OpenJDK 6 classes

2012-02-02 Thread Andrew Haley
I'm sorry for the cross-post, but I don't know exactly who to address this to. Just to save you time reading all this: the javac in OpenJDK 6 generates jsr instructions, but only if you compile a great many source files in one go. This affects rt.jar. I'm trying to find out why. If you build Op