Re:JDK7 to have escape analysis on by default...also back po...
by bad_user on Wednesday October 07, 2009 @07:36AM
(#866510)
No, because you can't optimize tail-calls made to virtual methods.
[ Parent
| on HN ]
Re:JDK7 to have escape analysis on by default...also back po...
by slava_pestov on Wednesday October 07, 2009 @07:40AM
(#866515)
There's no theoretical difficulty with compiling tail calls to virtual methods; of course perhaps you meant that the JVM doesn't expose a bytecode for doing so, which is absolutely correct.
Re:JDK7 to have escape analysis on by default...also back po...
by didroe on Wednesday October 07, 2009 @06:39PM
(#867825)
Why not? The TCO is done on the caller end and is completely transparent to the callee. You just don't bother pushing your return address when calling a function, so it'll return to the previous one instead.