diff --git a/polkadot/src/main.rs b/polkadot/src/main.rs index 14d62fbb9a..13c17df851 100644 --- a/polkadot/src/main.rs +++ b/polkadot/src/main.rs @@ -20,6 +20,11 @@ use color_eyre::eyre; +/// Global allocator. Changing it to another allocator will require changing +/// `memory_stats::MemoryAllocationTracker`. +#[global_allocator] +pub static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; + fn main() -> eyre::Result<()> { color_eyre::install()?; polkadot_cli::run()?;