Expand description
Selecting the default global allocator for Servo, and exposing common allocator introspection APIs for memory profiling.
BAO PATCH (embed): only install #[global_allocator] when feature
install-global-allocator is enabled. Library embeds (e.g. frog tools
path-dep on package bao) already provide their own process allocator
(jemalloc / system); dual #[global_allocator] fails the link.
Modules§
- libc_
compat - Memory allocation APIs compatible with libc
Structs§
- Allocator
- Handle to the jemalloc allocator
- Heap
Report
Statics§
Functions§
- dump_
unmeasured - heap_
reports - is_
tracking_ unmeasured - usable_
size ⚠ - Get the size of a heap block.