3 ms·
> It feels like it would be totally possibly to improve OSes to remove this limitation. Is anyone actually working on that? This is just my guess, but I assume
by zeroCalories 3y ago
> It feels like it would be totally possibly to improve OSes to remove this limitation. Is anyone actually working on that?
This is just my guess, but I assume they don't use growable stacks for the same reason Rust doesn't. C doesn't have a garbage collector, and making a fragmented stack would incur unacceptable performance penalties for many workloads. Getting around that would require a ton of work, but maybe with hardware support, like automatically following the stack pointer to bring it into cache like a normal stack could get around that.