mozilla/rust — Issue #1509: Reduce the Rust stack red zone
Author: brson
Created: 2012-01-13 21:05:26+00:00
State: open
Labels: rt, trans

Right now the stack red zone is 20K on all platforms, which is ~20K larger than we would like. Several considerations:

* The dynamic linker performs lazy binding in the red zone. Lazy binding can be turned off.
* Landing pads call _Unwind_Resume in the red zone. We can probably come up with a scheme to switch stacks for this, but even better will be to implement our own unwinding.
* There is some logging happening in the red zone that only shows up with RUST_LOG set appropritiately.
* There is at least one upcall still doing a lot of work in the red zone.
* We need to be able to handle signals in the red zone, haven't put any thought into it yet.