Le 18 déc. 2009 à 20:18, Rémi Forax a écrit :

> I've written an entry on how to enable tail call on JVM:
> http://weblogs.java.net/blog/forax/archive/2009/12/18/tailcall-anyone
> 
> I have do some tests and it works very well :)


Great piece of news !

Sorry to ask such a naive question, but why is it the responsibility
of the bytecode emitter to mark a call as "tail" ?
It seems fairly easy for HotSpot to decide whether a call is tail or not.

Does this mean that some language implementers would like to have
their calls unoptimized even when they could be ? The only reason I
can think of is to have full stack trace. However, in this case, I would
expect to just have a "-XX" flag to disable tailcall optimization when
one wishes to have full stack traces.


Xavier Clerc

--

You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
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