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 reporting GC fields from base types #111011

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

MichalStrehovsky
Copy link
Member

Fixes #110836.

When we extended managed CorInfoImpl to support object stack allocation in #104411, there was one more spot that assumed valuetypes only in GatherClassGCLayout that we missed. This resulted in not reporting any GC pointers in base types.

Cc @dotnet/ilc-contrib

Fixes dotnet#110836.

When we extended managed CorInfoImpl to support object stack allocation in dotnet#104411, there was one more spot that assumed valuetypes only in `GatherClassGCLayout` that we missed. This resulted in not reporting any GC pointers in base types.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@MichalStrehovsky
Copy link
Member Author

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member

jkotas commented Dec 31, 2024

Could you please also fix the comment at

// This is only called for Value classes. It returns a boolean array
? The method is valid for reference types too and the array size is getHeapClassSize for those.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for coming up with a fix for this!

@MichalStrehovsky
Copy link
Member Author

/ba-g timeouts in macos legs after a comment only change (previous run was green)

@MichalStrehovsky MichalStrehovsky merged commit 1303e42 into dotnet:main Jan 2, 2025
86 of 90 checks passed
@MichalStrehovsky MichalStrehovsky deleted the fix110836 branch January 2, 2025 06:15
@jkotas
Copy link
Member

jkotas commented Jan 2, 2025

Backport candidate?

@MichalStrehovsky
Copy link
Member Author

/backport to release/9.0-staging

Copy link
Contributor

github-actions bot commented Jan 2, 2025

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/12588764932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash in ILC in the CI
2 participants