On Fri, Jul 5, 2013 at 4:58 PM, Bill Myers <[email protected]> wrote: > I believe that instead of segmented stacks, the runtime should determine a > tight upper bound for stack space for the a task's function, and only > allocate a fixed stack of that size, falling back to a large "C-sized" stack > if a bound cannot be determined. > > Such a bound can always be computed if there is no recursion, dynamic > dispatch, dynamic allocation on the stack, or foreign C functions. >
In practice this means everything would use a large stack. It misses the use case of scaling up tasks to many I/O requests by trading off performance for small size. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
