Skip to content

Commit

Permalink
limit stackalloc to page size 4096
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed May 29, 2023
1 parent 17159c7 commit e6f98ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ where
let mut results = Vec::with_capacity(iters.len());
results.resize(iters.len(), 0.0);
for (i, iters) in iters.iter().enumerate() {
let stack_alloc = i % 2048;
let stack_alloc = i % 4096; // default page size
#[cfg(any(target_family = "unix", target_family = "windows"))]
{
alloca::with_alloca(
Expand Down

0 comments on commit e6f98ee

Please sign in to comment.