slavapestov/factor — Issue #302: Growable stacks
Author: jckarter
Created: 2011-10-28 04:11:44+00:00
State: open
Labels: revisit, vm

We've already gone through the pain of implementing context allocation in the VM, so it might not be much more work to implement growable linked-list stacks as used by Go, Rust, and GCC 4.6. This would reduce the overhead of threads and eliminate callstack overflows. On the flip side, function call prologs would be slightly more expensive, and FFI calls would be more or less required to use a dedicated context (until platforms start shipping libc built with `-fgrowable-stacks`, at least).