Skip to content

Commit

Permalink
I will assume I screwed this before committing, and will promptly (ju…
Browse files Browse the repository at this point in the history
…st in case) revert to 16K hardcoded
  • Loading branch information
Sewer56 committed Nov 25, 2023
1 parent 4fe6d47 commit 3aa6c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-rust/src/utilities/cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ impl Cached {
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
{
// Apple lies about page size in libc on M1 says it's 4096 instead of 16384
*page_size = MmapOptions::page_size() as i32;
*page_size = 16384;
}

// Blame Apple
*allocation_granularity =
std::cmp::max(MmapOptions::allocation_granularity() as i32, *page_size);
}
Expand Down

0 comments on commit 3aa6c3b

Please sign in to comment.