Skip to content

[release/10.0] Fix msl wait time extraction in GC - #135228

Merged
JulieLeeMSFT merged 1 commit into
dotnet:release/10.0from
janvorli:backport/pr-135022-to-release-10.0
Oct 5, 2026
Merged

JulieLeeMSFT merged 1 commit into
dotnet:release/10.0from
janvorli:backport/pr-135022-to-release-10.0

Conversation

@janvorli

@janvorli janvorli commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Backport of #135022 to release/10.0

/cc @janvorli

Customer Impact

There is a bug in the gc_heap::get_msl_wait_time implementation that was introduced in .NET 9. The function has two output arguments soh_msl_wait_time and uoh_msl_wait_time, but instead of updating the values these args point to, it updates the args themselves. So it never reads out any value.
These values influence DATAS calculatation of throughput cost, which influences Gen0 allocation budgets and heap count adaptation.

Regression

Testing

Coreclr and libraries tests.

Risk

Low, it is a trivial change that just fixes the extraction of msl wait time values by get_msl_wait_time extracts.

Backport of dotnet#135022, adapted to gc.cpp before the GC source-file split.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f6205bb0-b7d2-47d7-bf83-96ed19e7b932
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @anicka-net, @dotnet/gc
See info in area-owners.md if you want to be subscribed.

@janvorli janvorli added the Servicing-consider Issue for next servicing release review label Oct 5, 2026
@janvorli janvorli added this to the 10.0.x milestone Oct 5, 2026
@janvorli
janvorli requested a review from kkokosa October 5, 2026 21:59
@JulieLeeMSFT JulieLeeMSFT added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 5, 2026
@JulieLeeMSFT

Copy link
Copy Markdown
Member

/ba-g known issue.

@JulieLeeMSFT
JulieLeeMSFT merged commit 0da5fc9 into dotnet:release/10.0 Oct 5, 2026
120 of 125 checks passed
@rbhanda rbhanda modified the milestones: 10.0.x, 10.0.14 Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-GC-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants