Skip to content

Fix reporting GC fields from base types#111011

Merged
MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:fix110836
Jan 2, 2025
Merged

Fix reporting GC fields from base types#111011
MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:fix110836

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jkotas

jkotas commented Dec 31, 2024

Copy link
Copy Markdown
Member

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.

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
@MichalStrehovsky
MichalStrehovsky deleted the fix110836 branch January 2, 2025 06:15
@jkotas

jkotas commented Jan 2, 2025

Copy link
Copy Markdown
Member

Backport candidate?

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/backport to release/9.0-staging

@github-actions

github-actions Bot commented Jan 2, 2025

Copy link
Copy Markdown
Contributor

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

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.

Crash in ILC in the CI

3 participants