Skip to content

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

Merged
jeffschwMSFT merged 3 commits into
dotnet:release/9.0from
jkurdek:backport/swift-inline-array-lowering
Oct 3, 2024
Merged

[release/9.0] Fix InlineArray swift lowering in mono#108483
jeffschwMSFT merged 3 commits into
dotnet:release/9.0from
jkurdek:backport/swift-inline-array-lowering

Conversation

@jkurdek

@jkurdek jkurdek commented Oct 2, 2024

Copy link
Copy Markdown
Contributor

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.

@dotnet-policy-service

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

@jeffschwMSFT jeffschwMSFT 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.

lgtm. we will take for consideration in 9 GA

@jkurdek

jkurdek commented Oct 3, 2024

Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines

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

1 similar comment
@azure-pipelines

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

@jkurdek

jkurdek commented Oct 3, 2024

Copy link
Copy Markdown
Contributor Author

Runtime is green. extra-platforms failures unrelated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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