Skip to content

refactor(allocator): rename EMPTY_CHUNK to EMPTY_CHUNK_FOOTER#21735

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/04-24-refactor_allocator_rename_empty_chunk_to_empty_chunk_footer_
Apr 24, 2026
Merged

refactor(allocator): rename EMPTY_CHUNK to EMPTY_CHUNK_FOOTER#21735
graphite-app[bot] merged 1 commit into
mainfrom
om/04-24-refactor_allocator_rename_empty_chunk_to_empty_chunk_footer_

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Apr 24, 2026

Copy link
Copy Markdown
Member

Pure refactor. Rename this var to better reflect what it is.

overlookmotel commented Apr 24, 2026

Copy link
Copy Markdown
Member Author

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.

@codspeed-hq

codspeed-hq Bot commented Apr 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 48 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing om/04-24-refactor_allocator_rename_empty_chunk_to_empty_chunk_footer_ (0c0831b) with om/04-24-test_allocator_remove_tests_for_size_of_chunkfooter_ (dfc2451)

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.

@overlookmotel overlookmotel self-assigned this Apr 24, 2026
@overlookmotel
overlookmotel marked this pull request as ready for review April 24, 2026 19:53
Copilot AI review requested due to automatic review settings April 24, 2026 19:53
@overlookmotel overlookmotel added C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior A-allocator Area - Allocator labels Apr 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors the allocator arena internals by renaming the canonical “empty chunk” static to better reflect that it represents a chunk footer, improving clarity in comments and call sites without changing behavior.

Changes:

  • Renamed EMPTY_CHUNK to EMPTY_CHUNK_FOOTER in arena module internals.
  • Updated documentation and all internal references/imports in arena submodules to use the new name.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
crates/oxc_allocator/src/arena/mod.rs Renames the canonical empty chunk static and updates related doc comments and is_empty() check.
crates/oxc_allocator/src/arena/from_raw_parts.rs Updates internal import and initialization to reference EMPTY_CHUNK_FOOTER.
crates/oxc_allocator/src/arena/drop.rs Updates internal import and reset() logic to use EMPTY_CHUNK_FOOTER.
crates/oxc_allocator/src/arena/create.rs Updates internal import and constructors to use EMPTY_CHUNK_FOOTER.

@graphite-app

graphite-app Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Merge activity

…1735)

Pure refactor. Rename this var to better reflect what it is.
@graphite-app
graphite-app Bot force-pushed the om/04-24-test_allocator_remove_tests_for_size_of_chunkfooter_ branch from ceaa3c5 to dfc2451 Compare April 24, 2026 21:18
@graphite-app
graphite-app Bot force-pushed the om/04-24-refactor_allocator_rename_empty_chunk_to_empty_chunk_footer_ branch from cbe7690 to 0c0831b Compare April 24, 2026 21:19
Base automatically changed from om/04-24-test_allocator_remove_tests_for_size_of_chunkfooter_ to main April 24, 2026 21:26
@graphite-app
graphite-app Bot merged commit 0c0831b into main Apr 24, 2026
38 checks passed
@graphite-app
graphite-app Bot deleted the om/04-24-refactor_allocator_rename_empty_chunk_to_empty_chunk_footer_ branch April 24, 2026 21:26
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