1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! The `elinvar` command line and its MCP server (DESIGN.md sections 9.3,
//! 9.7, and 9.8). These modules serve the binary, `xtask`, and the
//! integration tests, and are not part of the stable public Rust API.
pub
/// The stack of every thread that reads, translates, or solves a model.
///
/// Those passes recurse once per level of an expression tree, and the
/// readers allow trees up to 20,000 levels tall (nesting plus chained
/// operators), which the default stacks cannot hold: 1 MiB on the Windows
/// main thread, 8 MiB on the macOS and Linux one, 2 MiB on spawned threads.
/// Only touched pages are committed, so the size is a reservation.
pub const MODEL_STACK: usize = 1 << 30;
/// A thread builder for model work, with a `MODEL_STACK` stack.