Use explicit loops in addthread
aksr opened this issue · 0 comments
aksr commented
Posted on May 30, 2014 by Swift Elephant
The recursive writing of addthread obscures the fact that the Split instruction is the single reason we need a recursive thread processing order.
The switch cases in addthread in both pike.c and thompson.c all end upon tail calls. This should be acknowledged and maybe coded with an explicit loop.