diff options
-rw-r--r-- | components/style/parallel.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/style/parallel.rs b/components/style/parallel.rs index 82f003cff71..e578c6bbe51 100644 --- a/components/style/parallel.rs +++ b/components/style/parallel.rs @@ -32,8 +32,14 @@ use rayon; use smallvec::SmallVec; /// The minimum stack size for a thread in the styling pool, in kilobytes. +#[cfg(feature = "gecko")] pub const STYLE_THREAD_STACK_SIZE_KB: usize = 256; +/// The minimum stack size for a thread in the styling pool, in kilobytes. +/// Servo requires a bigger stack in debug builds. +#[cfg(feature = "servo")] +pub const STYLE_THREAD_STACK_SIZE_KB: usize = 512; + /// The stack margin. If we get this deep in the stack, we will skip recursive /// optimizations to ensure that there is sufficient room for non-recursive work. /// |