Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 9, 2025

Pure refactor. Shorten code by hoisting import of MiMalloc to top level, and tweak formatting.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Aug 9, 2025
Copy link
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 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.

@overlookmotel overlookmotel marked this pull request as ready for review August 9, 2025 11:13
Copilot AI review requested due to automatic review settings August 9, 2025 11:13
Copy link
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

This PR refactors the memory allocation tracking code by hoisting the MiMalloc import to the top level and improving code formatting. The changes make the code more concise by eliminating repetitive fully-qualified paths and standardizing formatting.

  • Moved MiMalloc import from mimalloc_safe to the top-level imports
  • Replaced all mimalloc_safe::MiMalloc references with the shorter MiMalloc
  • Simplified formatting by removing unnecessary multi-line unsafe blocks

@overlookmotel overlookmotel requested a review from camchenry August 9, 2025 11:13
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Aug 9, 2025
Copy link
Member Author

overlookmotel commented Aug 9, 2025

Merge activity

Pure refactor. Shorten code by hoisting import of `MiMalloc` to top level, and tweak formatting.
@graphite-app graphite-app bot force-pushed the 08-09-refactor_tasks_track_memory_allocations_shorten_code branch from d75ce39 to 0039523 Compare August 9, 2025 14:17
@graphite-app graphite-app bot merged commit 0039523 into main Aug 9, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 08-09-refactor_tasks_track_memory_allocations_shorten_code branch August 9, 2025 14:23
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 9, 2025
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
…2931)

Pure refactor. Shorten code by hoisting import of `MiMalloc` to top level, and tweak formatting.
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.

4 participants