Skip to content

Commit

Permalink
Set arenas to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Apr 14, 2021
1 parent f53174a commit c57265e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/malloc_utils/src/glibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const OPTIMAL_TRIM: c_ulong = 1_024 * 128;
const OPTIMAL_MMAP_THRESHOLD: c_int = 2 * 1_024 * 1_024;

/// The maximum number of arenas allowed to be created by malloc.
const OPTIMAL_ARENA_MAX: c_int = 1;
const OPTIMAL_ARENA_MAX: c_int = 4;

/// Constants used to configure malloc internals.
///
Expand Down Expand Up @@ -241,7 +241,7 @@ mod tests {

#[test]
fn malloc_arena_max_does_not_panic() {
malloc_arena_max(1).unwrap();
malloc_arena_max(OPTIMAL_ARENA_MAX).unwrap();
}

#[test]
Expand Down

0 comments on commit c57265e

Please sign in to comment.