diff --git a/bin/alphanet/Cargo.toml b/bin/alphanet/Cargo.toml index a15ef6b..7b47db0 100644 --- a/bin/alphanet/Cargo.toml +++ b/bin/alphanet/Cargo.toml @@ -30,7 +30,7 @@ default = ["jemalloc"] asm-keccak = ["reth-optimism-cli/asm-keccak"] -jemalloc = ["dep:tikv-jemallocator"] +jemalloc = ["dep:tikv-jemallocator", "reth-cli-util/jemalloc"] jemalloc-prof = ["jemalloc", "tikv-jemallocator?/profiling"] min-error-logs = ["tracing/release_max_level_error"] diff --git a/bin/alphanet/src/main.rs b/bin/alphanet/src/main.rs index d1963e4..6b44456 100644 --- a/bin/alphanet/src/main.rs +++ b/bin/alphanet/src/main.rs @@ -31,11 +31,8 @@ use reth_optimism_node::{args::RollupArgs, node::OptimismAddOns}; use reth_optimism_rpc::sequencer::SequencerClient; use reth_provider::providers::BlockchainProvider2; -// We use jemalloc for performance reasons. -#[cfg(all(feature = "jemalloc", unix))] -#[doc(hidden)] #[global_allocator] -static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; +static ALLOC: reth_cli_util::allocator::Allocator = reth_cli_util::allocator::new_allocator(); #[doc(hidden)] fn main() {