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.

14 lines
349 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;
#[must_use]
//TODO: get usage
pub fn memory_usage() -> Option<string> { None }
2024-05-09 15:59:08 -07:00
#[must_use]
pub fn memory_stats() -> Option<String> {
Some("Extended statistics are not available from hardened_malloc.".to_owned())
}