On Tue, Nov 5, 2013 at 4:40 PM, Brian Anderson <[email protected]> wrote:
> On 11/04/2013 07:50 PM, Bill Myers wrote:
>
> The advantage of segmented stacks is that blocked tasks only take up as much
> memory as they actually need to store state, so that for instance a network
> server can use a task for each connection, and still only use, say, 64 bytes
> per connection if that's possible instead of the number of stack pages that
> got allocated for previous computation (assuming an "extreme" version that
> allocates a stack segment on every call).
>

>
> In practice there are a number of other limitations that would ever prevent
> Rust from reducing a stack segment to 64 bytes. Rust segmented stacks still
> needed a large 'red zone' for running various bits of code, the most
> problematic being the dynamic linker.

Plus the sysv amd64 ABI requires a 128 byte red zone under the stack anyway.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to