Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EH stacktrace keepalive array copy size #104912

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

janvorli
Copy link
Member

When the stacktrace keepalive array is grown, we were incorrectly copying extra item from the original keepalive array to the new one. In some cases, it ended up adding garbage to the array and GC object verification has hickuped on it. In the CI, it was only hit by GCStress-Extra tests that set DOTNET_HeapVerify=1 so far.

This fixes the copied size to be the source array's number of elements.

Close #104878

When the stacktrace keepalive array is grown, we were incorrectly
copying extra item from the original keepalive array to the new one. In
some cases, it ended up adding garbage to the array and GC object
verification has hickuped on it. In the CI, it was only hit by
GCStress-Extra tests that set DOTNET_HeapVerify=1 so far.

This fixes the copied size to be the source array's number of elements.

Close dotnet#104878
@janvorli janvorli added this to the 9.0.0 milestone Jul 15, 2024
@janvorli janvorli requested review from jkotas and VSadov July 15, 2024 18:11
@janvorli janvorli self-assigned this Jul 15, 2024
@janvorli
Copy link
Member Author

FYI: @jakobbotsch

@jkotas jkotas merged commit bc9b3b6 into dotnet:main Jul 16, 2024
89 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure: Regressions/coreclr/GitHub_45929/test45929/test45929.cmd
2 participants