Skip to main content

Module allocator

Module allocator 

Source
Expand description

Basic heap allocator instrumentation for SGX enclaves. Basic heap allocator instrumentation for SGX enclaves.

Non-SGX binaries should use something like jemalloc, which tracks many more useful stats more efficiently. The current SGX allocator is just SpinMutex<Dlmalloc<_>>, which is pretty awful for normal multi-threaded workloads.

Structs§

AllocatorStats
A snapshot of the global allocator’s requested-byte counters.
InstrumentedSystemAllocator
Rust’s System global allocator instrumented with allocation counters.

Functions§

stats
Returns a snapshot of the allocator stats.