mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-30 11:24:31 +00:00
#5244 Pass `JEMALLOC_SYS_WITH_LG_PAGE=16` env to aarch64 cross-compilation to support systems with up to 64-KiB page sizes. This is backwards-compatible for the current (most usual) 4-KiB systems.
This commit is contained in:
committed by
GitHub
parent
66c6552e8c
commit
d297d08c6b
@@ -66,11 +66,15 @@ fn bls_hardware_acceleration() -> bool {
|
||||
return std::arch::is_aarch64_feature_detected!("neon");
|
||||
}
|
||||
|
||||
fn allocator_name() -> &'static str {
|
||||
if cfg!(target_os = "windows") {
|
||||
"system"
|
||||
} else {
|
||||
"jemalloc"
|
||||
fn allocator_name() -> String {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
"system".to_string()
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
match malloc_utils::jemalloc::page_size() {
|
||||
Ok(page_size) => format!("jemalloc ({}K)", page_size / 1024),
|
||||
Err(e) => format!("jemalloc (error: {e:?})"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user