pub(crate) fn create_allocator_mapping(
    reserved: ReservedAllocators,
    include_common_plan: bool
) -> EnumMap<AllocationSemantics, AllocatorSelector>
Expand description

Create an allocator mapping for spaces in Common/BasePlan for a plan. A plan should reserve its own allocators.

§Arguments

  • reserved: the number of reserved allocators for the plan specific policies.
  • include_common_plan: whether the plan uses common plan. If a plan uses CommonPlan, we will initialize allocator mapping for spaces in CommonPlan.