This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Gimplifying jsr
- From: <tm_gccmail at mail dot kloo dot net>
- To: Eric Blake <ebb9 at byu dot net>
- Cc: Andrew Haley <aph at redhat dot com>, java at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Fri, 20 Jun 2003 17:22:45 -0700 (PDT)
- Subject: Re: [tree-ssa] Gimplifying jsr
On Thu, 19 Jun 2003, Eric Blake wrote:
> By the way, Sun is considering deprecating jsr and return in their JDK
> 1.5 release (and also the JLS 3rd version to be published at that time).
> There are demonstratable cases of legal Java code according to the JLS
> that cannot pass verification according to the JVMS when the compiler
> uses jsr. Sun's suggested replacement is to always inline finally
> statements at all points where they could be invoked.
>
> http://developer.java.sun.com/developer/bugParade/bugs/4381996.html
It's already been done for 1.4.2 apparently:
http://java.sun.com/j2se/1.4.2/changes.html#javac
"Bug 4381996 fixed: javac no longer gnerates the jsr isntruction, instead
inlining the finally clause."
It seems likely that JSR/RET support will disappear from JVMs eventually.
Toshi