Is saving the stack pointer around method handle calls still needed?

John Rose john.r.rose at oracle.com
Fri Apr 4 04:48:28 UTC 2014


On Apr 3, 2014, at 5:38 PM, Krystal Mok <rednaxelafx at gmail.com> wrote:

> It'd be interesting to see tail calls coming :-)

Doug Lea reminded Brian, David, and me today of one big reason tail calls are important:  Certain threaded frameworks cannot delegate from one actor to another without it.  The failure mode is stack overflow, very occasionally.  This is the root cause of a recent bug in our fork-join framework code, which schedules from task to task by (sometimes) delegating from the old task to the new one.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20140404/82ed26ee/attachment.html>


More information about the hotspot-compiler-dev mailing list