Files
continuwuity/src/core/alloc/hardened.rs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
431 B
Rust
Raw Normal View History

//! hmalloc allocator
2024-05-09 15:59:08 -07:00
#[global_allocator]
static HMALLOC: hardened_malloc_rs::HardenedMalloc = hardened_malloc_rs::HardenedMalloc;
2025-01-18 01:30:41 +00:00
pub fn trim<I: Into<Option<usize>>>(_: I) -> crate::Result { Ok(()) }
2024-05-09 15:59:08 -07:00
#[must_use]
//TODO: get usage
2025-01-18 01:32:37 +00:00
pub fn memory_usage() -> Option<String> { None }
2024-05-09 15:59:08 -07:00
#[must_use]
2025-01-18 01:32:37 +00:00
pub fn memory_stats(_opts: &str) -> Option<String> {
Some("Extended statistics are not available from hardened_malloc.".to_owned())
}