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

[NativeAOT] Objective-C: SetMessageSendPendingException and SetMessageSendCallback #77956

Merged
merged 10 commits into from
Nov 11, 2022

Conversation

AustinWise
Copy link
Contributor

This implements SetMessageSendPendingException and SetMessageSendCallback together, as the tests use both features together.

When using a NativeAOT-compatible remote executor (see dotnet/arcade#11460 ), the tests in src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests.

Also, by settings the FEATURE_OBJCMARSHAL define and the FeatureObjCMarshal property, the src/tests/Interop/ObjectiveC/AutoReleaseTest/ test now passes.

Related issue: #77472

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Nov 6, 2022
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

The compiler side looks good to me otherwise, thanks!

I'd need to read up more about this APIs to sign off on Corelib so I hope someone more qualified reviews that.

* Deduplicate constants by moving them to RuntimeConstants.cs
* Move the macOS specific parts of InteropHelpers to a separate file
* Move knowledge of Objective-C out of type system files
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.

LGTM. Thank you!

@marek-safar marek-safar merged commit dc2b0f7 into dotnet:main Nov 11, 2022
@AustinWise AustinWise deleted the austin/ObjC-SetMessageSendCallback branch November 11, 2022 17:17
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants