[release/9.0-staging][mono][gc] Fix gc descriptor computation for InlineArray structs by BrzVlad · Pull Request #116951 · dotnet/runtime

@BrzVlad

`compute_class_bitmap` iterates over all ref field slots in the current class so we can produce a GC descriptor. `field_iter` represents how many times the type in question is repeated in the current struct. Instead of bumping the current offset by the size of the repeated field, for each iteration, we were adding `field_offset` which is wrong.

AI review requested due to automatic review settings

June 24, 2025 06:44

lambdageek

This was referenced

Aug 5, 2025

This was referenced

Aug 7, 2025