chore: update libcosmic with mmap threshold fix

This commit is contained in:
Michael Aaron Murphy 2025-02-12 19:19:19 +01:00
parent 17b0c665e7
commit 64c591ed19
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 34 additions and 95 deletions

View file

@ -6,11 +6,5 @@ use tikv_jemallocator::Jemalloc;
static GLOBAL: Jemalloc = Jemalloc;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Prevents glibc from hoarding memory via memory fragmentation.
#[cfg(all(not(feature = "jemalloc"), target_env = "gnu"))]
unsafe {
libc::mallopt(libc::M_MMAP_THRESHOLD, 65536);
}
cosmic_files::main()
}