Skip to main content

bootstrap_default_memory_manager_with_config

Function bootstrap_default_memory_manager_with_config 

Source
pub fn bootstrap_default_memory_manager_with_config<P: RuntimeBootstrapPolicy>(
    config: MemoryManagerConfig,
    policy: &P,
) -> Result<CommittedAllocations, RuntimeBootstrapError<P::Error>>
Expand description

Bootstrap the default runtime with an explicit bucket setting and allocation policy.

The first construction uses this setting; repeated calls and reopened memory must match it exactly before bootstrap effects. Call this during bootstrap before any operation that would construct the default runtime.