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 dynamic class zeroing #80822

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Conversation

janvorli
Copy link
Member

Recent change in the ThreadLocalModule::AllocateDynamicClass has accidentally removed zeroing for new CollectibleDynamicEntry instances. That leads to crashes when running code in an unloadable context.
It got exposed by weekly coreclr test runs with the runincontext option.

This change fixes that.

Recent change in the `ThreadLocalModule::AllocateDynamicClass` has
accidentally removed zeroing for new  CollectibleDynamicEntry instances.
That leads to crashes when running code in an unloadable context.

This change fixes that.
@janvorli janvorli added this to the 8.0.0 milestone Jan 18, 2023
@janvorli janvorli requested a review from jkoritzinsky January 18, 2023 23:21
@janvorli janvorli self-assigned this Jan 18, 2023
@janvorli janvorli merged commit 620099d into dotnet:main Jan 19, 2023
@janvorli janvorli deleted the fix-dynamic-class-zeroing branch January 19, 2023 13:47
mdh1418 pushed a commit to mdh1418/runtime that referenced this pull request Jan 24, 2023
Recent change in the `ThreadLocalModule::AllocateDynamicClass` has
accidentally removed zeroing for new  CollectibleDynamicEntry instances.
That leads to crashes when running code in an unloadable context.

This change fixes that.
@ghost ghost locked as resolved and limited conversation to collaborators Feb 18, 2023
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.

2 participants