Skip to content

refactor(allocator): rename bump module to arena#21396

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/04-13-refactor_allocator_rename_bump_module_to_arena_
Apr 13, 2026
Merged

refactor(allocator): rename bump module to arena#21396
graphite-app[bot] merged 1 commit intomainfrom
om/04-13-refactor_allocator_rename_bump_module_to_arena_

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Apr 13, 2026

Pure refactor. Rename bump.rs to arena.rs, and rename bump tests directory to arena - in line with renaming Bump to Arena (#21394).

No substantive changes, only renaming.

Copy link
Copy Markdown
Member Author

overlookmotel commented Apr 13, 2026


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 changes, fast-track this PR to the front of the merge queue

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.

@github-actions github-actions Bot added A-allocator Area - Allocator C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Apr 13, 2026
@overlookmotel overlookmotel self-assigned this Apr 13, 2026
@overlookmotel overlookmotel marked this pull request as ready for review April 13, 2026 18:18
Copilot AI review requested due to automatic review settings April 13, 2026 18:18
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 13, 2026

Merging this PR will not alter performance

✅ 48 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing om/04-13-refactor_allocator_rename_bump_module_to_arena_ (80ba06d) with main (2e144c2)2

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors oxc_allocator to rename the internal bump module and associated test paths/imports to arena, aligning naming with “arena allocator” terminology while keeping behavior the same.

Changes:

  • Renamed bump module imports/usages to arena across allocator code and doctest examples.
  • Renamed/updated integration test imports and the [[test]] entry from bump_try_alloc to arena_try_alloc.
  • Moved/renamed the allocator test suite directory from tests/bump/* to tests/arena/* (including the quickcheck helper module).

Reviewed changes

Copilot reviewed 22 out of 24 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/oxc_allocator/Cargo.toml Renames the [[test]] target to arena_try_alloc and updates testing-feature comment text.
crates/oxc_allocator/src/lib.rs Switches conditional module exposure from bump to arena under the testing feature.
crates/oxc_allocator/src/arena.rs Updates doctest imports from oxc_allocator::bump to oxc_allocator::arena.
crates/oxc_allocator/src/alloc.rs Updates internal Arena import path to crate::arena::Arena.
crates/oxc_allocator/src/allocator.rs Updates internal Arena import path to crate::arena::Arena.
crates/oxc_allocator/src/allocator_api2.rs Updates safety comment reference from bump.rs to arena.rs.
crates/oxc_allocator/src/from_raw_parts.rs Updates internal constants/types import path from bump to arena.
crates/oxc_allocator/src/hash_map.rs Updates internal Arena import path to crate::arena::Arena.
crates/oxc_allocator/src/hash_set.rs Updates internal Arena import path to crate::arena::Arena.
crates/oxc_allocator/src/tracking.rs Updates internal Arena import path to crate::arena::Arena.
crates/oxc_allocator/src/vec.rs Updates internal Arena import path to crate::arena::Arena.
crates/oxc_allocator/src/vec2/raw_vec.rs Updates test-only Arena import path to crate::arena::Arena.
crates/oxc_allocator/tests/arena_try_alloc.rs Updates integration test import path from oxc_allocator::bump to oxc_allocator::arena.
crates/oxc_allocator/tests/arena/main.rs Test-suite crate root for the arena tests directory (module declarations + crate-level lint config).
crates/oxc_allocator/tests/arena/quickcheck.rs Adds/relocates quickcheck wrapper macro for Miri-friendly iteration limiting.
crates/oxc_allocator/tests/arena/quickchecks.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/tests.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/alloc_fill.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/alloc_try_with.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/alloc_with.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/allocation_limit.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/capacity.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/try_alloc_try_with.rs Updates Arena import path to oxc_allocator::arena::Arena.
crates/oxc_allocator/tests/arena/try_alloc_with.rs Updates Arena import path to oxc_allocator::arena::Arena.

Comment thread crates/oxc_allocator/Cargo.toml
@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app Bot commented Apr 13, 2026

Merge activity

Pure refactor. Rename `bump.rs` to `arena.rs`, and rename `bump` tests directory to `arena` - in line with renaming `Bump` to `Arena` (#21394).

No substantive changes, only renaming.
@graphite-app graphite-app Bot force-pushed the om/04-13-refactor_allocator_rename_box_and_vec_methods branch from ca55ff5 to 24fb7eb Compare April 13, 2026 18:33
@graphite-app graphite-app Bot force-pushed the om/04-13-refactor_allocator_rename_bump_module_to_arena_ branch from 91e8d4f to 80ba06d Compare April 13, 2026 18:34
Base automatically changed from om/04-13-refactor_allocator_rename_box_and_vec_methods to main April 13, 2026 18:38
@graphite-app graphite-app Bot merged commit 80ba06d into main Apr 13, 2026
36 checks passed
@graphite-app graphite-app Bot deleted the om/04-13-refactor_allocator_rename_bump_module_to_arena_ branch April 13, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-allocator Area - Allocator 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.

2 participants