#1029: taillcall into PIR compiler broken
--------------------+-------------------------------------------------------
Reporter: coke | Owner: whiteknight
Type: bug | Status: assigned
Priority: normal | Milestone:
Component: none | Version: trunk
Severity: high | Keywords:
Lang: perl6 | Patch:
Platform: all |
--------------------+-------------------------------------------------------
Changes (by whiteknight):
* status: new => assigned
* platform: => all
Comment:
short bit of analysis here. The tailcall happens without a problem. The
PIR compreg resets interp->current_cont to NEEDS_CONTINUATION. The NCI
VTABLE_invoke returns the old cur_opcode+2 destination instead of the
updated destination from the interp->current_cont. The runloop continues
execution past the end of the function, which leads to any number of
potential problems. I'm testing a fix for this right now.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1029#comment:8>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets