Skip to content

[NFC] Remove duplication across allocate jit memory windows for x64 and arm64#129

Merged
mazong1123 merged 1 commit intomicrosoft:mainfrom
lucianopa-msft:lucianopa/nfc-clean-up
Mar 30, 2026
Merged

[NFC] Remove duplication across allocate jit memory windows for x64 and arm64#129
mazong1123 merged 1 commit intomicrosoft:mainfrom
lucianopa-msft:lucianopa/nfc-clean-up

Conversation

@lucianopa-msft
Copy link
Copy Markdown
Member

Just reduce duplication for consistency since only thing that differs now is the max_range.
So just a non-functional change that reduces code duplication.

@lucianopa-msft lucianopa-msft changed the title [NFC] Remove duplication across allocate jit memory for x64 and arm64 [NFC] Remove duplication across allocate jit memory windows for x64 and arm64 Mar 27, 2026
@mazong1123 mazong1123 requested a review from Copilot March 30, 2026 16:54
Copy link
Copy Markdown

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 Windows JIT memory allocation to remove duplicated logic between x86_64 and aarch64 by sharing the same search/allocate loop and only varying max_range.

Changes:

  • Consolidates the Windows allocate_jit_memory_windows implementation for x86_64 and aarch64 into a single code path.
  • Replaces per-architecture duplicated loops with architecture-specific max_range definitions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lucianopa-msft lucianopa-msft force-pushed the lucianopa/nfc-clean-up branch from f1578c8 to 8a485a6 Compare March 30, 2026 17:28
Copy link
Copy Markdown

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@mazong1123 mazong1123 left a comment

Choose a reason for hiding this comment

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

LGTM

@mazong1123 mazong1123 merged commit 95a9d8a into microsoft:main Mar 30, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants