Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[23.1] Backport profiling names and runtime-merge padding fixes - #205

Draft
marcpems wants to merge 2 commits into
rust-lang:rustc/23.1-2026-07-22from
marcpems:backport/rust-23.1-profile-padding
Draft

marcpems wants to merge 2 commits into
rust-lang:rustc/23.1-2026-07-22from
marcpems:backport/rust-23.1-profile-padding

Conversation

@marcpems

@marcpems marcpems commented Nov 19, 2026 •

Copy link
Copy Markdown

Draft - Not for review

Backports llvm/llvm-project#243923 to rustc/23.1-2026-07-22, including upstream follow-ups through b341a0af0.

Fixes Windows profile-name padding and bitmap-padding offsets during profile reading and runtime merging, needed to unblock Windows Arm Rust PGO. Includes the upstream regression tests; unrelated upstream changes are excluded.

Validation

  • Current refresh, Windows x64: padded-profile reproducer fails before and passes after; both Windows padding regressions and all 252 ProfileData unit tests pass. Used Clang 23.1.6 with names compression disabled; the reader build has zlib/zstd disabled.
  • Initial backport: native Arm runtime and Rust end-to-end PGO validation passed. Not rerun for this refresh.

AI assistance: GitHub Copilot assisted with backporting and validation.

marcpems and others added 2 commits November 18, 2026 18:03
Skip zero padding after the Windows names-section start sentinel. Include the raw header's bitmap padding when locating names and value-profile records during runtime merging.

This fixes malformed fresh profiles and repeated-run value-profile crashes observed with Microsoft LINK on Windows Arm64. Add focused regression tests for both layouts.

Backport for Rust's pinned LLVM 23.1 revision
08ec928.

Upstream review: llvm#243923
Source commit: f25e7ef
The upstream change is still under review; this branch is for Rust validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Backport upstream follow-ups ad6bac1, c5954df, fb10568, a90bd3c, and 8244903 from llvm#243923.

Include the profile-reader padding fix, expanded regressions, and reviewer-requested explanations without unrelated main-branch changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: de351b8f-e68b-49e6-84c2-858375889992
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.

1 participant