Skip to content

Commit

Permalink
fix: Increase stacker RED_ZONE size to avoid stack overflow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bakjos committed Apr 18, 2024
1 parent c2d6bb8 commit 0c3aa4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/src/util/recursive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use std::cell::RefCell;

// See documentation of `stacker` for the meaning of these constants.
// TODO: determine good values or make them configurable
const RED_ZONE: usize = 128 * 1024; // 128KiB
const STACK_SIZE: usize = 16 * RED_ZONE; // 2MiB
const RED_ZONE: usize = 256 * 1024; // 256KiB
const STACK_SIZE: usize = 2 * 1024 * 1024; // 2MiB

/// Recursion depth.
struct Depth {
Expand Down

0 comments on commit 0c3aa4b

Please sign in to comment.