Skip to content

Commit

Permalink
Revert "I will assume I screwed this before committing, and will prom…
Browse files Browse the repository at this point in the history
…ptly (just in case) revert to 16K hardcoded"

This reverts commit f390414.
  • Loading branch information
Sewer56 committed Nov 26, 2023
1 parent 354acc5 commit 570e4dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src-rust/src/utilities/cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ 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 = 16384;
*page_size = MmapOptions::page_size() as i32;
}

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

0 comments on commit 570e4dc

Please sign in to comment.