Commits
Click on a commit to change the comparison rangerefactor(allocator/pool): single `AllocatorPool` implementation (#13622)
Previously we had 2 different versions of `AllocatorPool`. Which version is used was controlled purely by the `fixed_size` / `disable_fixed_size` Cargo features.
Combine the 2 versions into a single `AllocatorPool` struct which can represent *either* a standard or a fixed-size allocator pool at runtime.
1. `AllocatorPool::new` creates a pool which uses standard allocators.
2. `AllocatorPool::new_fixed_size` creates a pool which uses fixed-size allocators.
`AllocatorPool::new_fixed_size` is feature-gated behind `fixed_size` Cargo feature.
Currently `AllocatorPool::new` still creates a fixed-size pool if `fixed_size` feature is enabled. That's just to avoid a change which would break the linter. Next PR will update the linter to conditionally use `AllocatorPool::new_fixed_size`, and then this workaround can be removed.2 months ago
by overlookmotel