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

[release/9.0] Fix InlineArray swift lowering in mono #108483

Merged

Conversation

jkurdek
Copy link
Member

@jkurdek jkurdek commented Oct 2, 2024

Backport of #107744 and #107859 to release/9.0

Customer Impact

  • Customer reported
  • Found internally

In .NET 9 we added swift lowering algorithm to both CoreCLR and Mono backends. This included support for lowering InlineArray. The scenario lacked appropriate tests, once we started working on projections we found out that the Mono path is completely broken (runtime crash when attempting to pass struct annotated with InlineArray).

Regression

  • Yes
  • No

Testing

New test suite for InlineArray lowering. Tests are included in this change.

Risk

Low. Only affects swift interop path on mono. Changes are small, easy to reason about and well tested.

Copy link
Contributor

Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@lambdageek lambdageek added this to the 9.0.0 milestone Oct 2, 2024
@lambdageek lambdageek added the Servicing-consider Issue for next servicing release review label Oct 2, 2024
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

lgtm. we will take for consideration in 9 GA

@jkurdek
Copy link
Member Author

jkurdek commented Oct 3, 2024

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkurdek
Copy link
Member Author

jkurdek commented Oct 3, 2024

Runtime is green. extra-platforms failures unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Interop-mono os-ios Apple iOS os-tvos Apple tvOS Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants