Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Sep 9, 2025

#13622 added AllocatorPool::new_fixed_size method to create a fixed-size allocator pool. #13623 switched the linter over to using this method when a fixed-size allocator is required. So now we can make AllocatorPool::new do what it's intended to do, and create a standard allocator pool.

Strictly speaking this is a breaking change, but I don't think anyone is using the fixed_size feature, except for the linter. Without that, this change makes no difference to behavior.

Copy link
Member Author

overlookmotel commented Sep 9, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 9, 2025

CodSpeed Instrumentation Performance Report

Merging #13624 will not alter performance

Comparing 09-09-refactor_allocator_pool_allocatorpool_new_always_create_standard_pool (b9bef25) with main (3d27c5b)1

Summary

✅ 37 untouched benchmarks

Footnotes

  1. No successful run was found on main (ff9e4fb) during the generation of this report, so 3d27c5b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@overlookmotel overlookmotel marked this pull request as ready for review September 9, 2025 16:52
@graphite-app graphite-app bot force-pushed the 09-09-refactor_linter_plugins_use_fixed-size_allocators_when_externallinter_exists branch from 90ff7e9 to f9bf3d5 Compare September 10, 2025 02:47
@graphite-app graphite-app bot force-pushed the 09-09-refactor_allocator_pool_allocatorpool_new_always_create_standard_pool branch from b71acf1 to 37fca6b Compare September 10, 2025 02:48
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Sep 10, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 10, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 09-09-refactor_linter_plugins_use_fixed-size_allocators_when_externallinter_exists branch from f9bf3d5 to 9e5dcbd Compare September 10, 2025 04:05
graphite-app bot pushed a commit that referenced this pull request Sep 10, 2025
… pool (#13624)

#13622 added `AllocatorPool::new_fixed_size` method to create a fixed-size allocator pool. #13623 switched the linter over to using this method when a fixed-size allocator is required. So now we can make `AllocatorPool::new` do what it's intended to do, and create a standard allocator pool.

Strictly speaking this is a breaking change, but I don't think anyone is using the `fixed_size` feature, except for the linter. Without that, this change makes no difference to behavior.
@graphite-app graphite-app bot force-pushed the 09-09-refactor_allocator_pool_allocatorpool_new_always_create_standard_pool branch from 37fca6b to e81da5a Compare September 10, 2025 04:05
graphite-app bot pushed a commit that referenced this pull request Sep 10, 2025
…13625)

#13622 and #13624 altered what happens when the `fixed_size` Cargo feature is enabled. Previously, enabling that feature altered behavior of `AllocatorPool`. Now the feature is additive - it does nothing on it's own, but only adds additional APIs, and *those APIs* can be used to alter behavior.

The purpose of the `disable_fixed_size` Cargo feature was to prevent the `fixed_size` feature being activated when tests are run with `--all-features`. Now that enabling `fixed_size` feature doesn't alter behavior, we don't need to worry about it being enabled in tests. Therefore `disable_fixed_size` feature can be removed.

This removes a bunch of `#[cfg]` boilerplate, and ugly hacks which were previously required to workaround feature unification.
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Sep 10, 2025
… pool (#13624)

#13622 added `AllocatorPool::new_fixed_size` method to create a fixed-size allocator pool. #13623 switched the linter over to using this method when a fixed-size allocator is required. So now we can make `AllocatorPool::new` do what it's intended to do, and create a standard allocator pool.

Strictly speaking this is a breaking change, but I don't think anyone is using the `fixed_size` feature, except for the linter. Without that, this change makes no difference to behavior.
@graphite-app graphite-app bot force-pushed the 09-09-refactor_linter_plugins_use_fixed-size_allocators_when_externallinter_exists branch from 9e5dcbd to ff9e4fb Compare September 10, 2025 04:14
@graphite-app graphite-app bot force-pushed the 09-09-refactor_allocator_pool_allocatorpool_new_always_create_standard_pool branch from e81da5a to b9bef25 Compare September 10, 2025 04:15
graphite-app bot pushed a commit that referenced this pull request Sep 10, 2025
…13625)

#13622 and #13624 altered what happens when the `fixed_size` Cargo feature is enabled. Previously, enabling that feature altered behavior of `AllocatorPool`. Now the feature is additive - it does nothing on it's own, but only adds additional APIs, and *those APIs* can be used to alter behavior.

The purpose of the `disable_fixed_size` Cargo feature was to prevent the `fixed_size` feature being activated when tests are run with `--all-features`. Now that enabling `fixed_size` feature doesn't alter behavior, we don't need to worry about it being enabled in tests. Therefore `disable_fixed_size` feature can be removed.

This removes a bunch of `#[cfg]` boilerplate, and ugly hacks which were previously required to workaround feature unification.
Base automatically changed from 09-09-refactor_linter_plugins_use_fixed-size_allocators_when_externallinter_exists to main September 10, 2025 04:22
@graphite-app graphite-app bot merged commit b9bef25 into main Sep 10, 2025
30 checks passed
@graphite-app graphite-app bot deleted the 09-09-refactor_allocator_pool_allocatorpool_new_always_create_standard_pool branch September 10, 2025 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants