diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-11 12:37:09 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-11 13:57:11 -0800 |
| commit | 94c389a25bde3f86f25e45b2a31d09bf72d8deeb (patch) | |
| tree | 0247627ef16661479947540d67f4d89d1d115468 /src/rt/rust_task.h | |
| parent | c00ec5f9c936639ec2fd9291cd484afa56aa24c8 (diff) | |
| download | rust-94c389a25bde3f86f25e45b2a31d09bf72d8deeb.tar.gz rust-94c389a25bde3f86f25e45b2a31d09bf72d8deeb.zip | |
rt: Add RUST_MAX_STACK env var with 8MB default
Closes #1489
Diffstat (limited to 'src/rt/rust_task.h')
| -rw-r--r-- | src/rt/rust_task.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index b47b62e2d14..6ae663d2066 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -126,6 +126,9 @@ rust_task : public kernel_owned<rust_task>, rust_cond debug::task_debug_info debug; + // The amount of stack we're using, excluding red zones + size_t total_stack_sz; + // Only a pointer to 'name' is kept, so it must live as long as this task. rust_task(rust_scheduler *sched, rust_task_list *state, |
