-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Low level API support for Objective-C interop. #52146
Low level API support for Objective-C interop. #52146
Conversation
* Add ComWrappers CMake feature flag Split interoplibinterface for comwrappers and objc Create pattern for QCalls * Feedback and SAL.
Merge in latest .NET 6 development branch
Remove System.Runtime.InteropServices.ObjectiveC.Wrappers and associated classes
Remove System.Runtime.InteropServices.ObjectiveC.Wrappers and associated classes
…ibute. Discover attribute during type load and set bit. Update EagerFinalizer callout to query bit.
…pServices/ObjectiveC/Bridge.cs Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Expose the refcounted GCHandle from the Objective-C interop layer
- Only for OSX_64
the stack prior to control leaving the runtime.
The new callbacks now fire when before the GC scans handles and is non-concurrent.
/azp run runtime |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the rest LGTM!
We need additional API in CoreCLR to support toggle refs properly, and this is in progress [1]. In the meantime, stub out parts of it, so that the process doesn't abort. This way we'll have failing tests instead (and work in other areas can progress, since the process doesn't abort). [1]: dotnet/runtime#52146
We need additional API in CoreCLR to support pending exception properly, and this is in progress [1]. In the meantime, stub out parts of it, so that the process doesn't abort. This way we'll have failing tests instead (and work in other areas can progress, since the process doesn't abort). [1]: dotnet/runtime#52146
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exception handling stuff looks good modulo the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PInvoke overriders and GC callbacks LGTM.
We need additional API in CoreCLR to support toggle refs properly, and this is in progress [1]. In the meantime, stub out parts of it, so that the process doesn't abort. This way we'll have failing tests instead (and work in other areas can progress, since the process doesn't abort). [1]: dotnet/runtime#52146
…11521) We need additional API in CoreCLR to support pending exception properly, and this is in progress [1]. In the meantime, stub out parts of it, so that the process doesn't abort. This way we'll have failing tests instead (and work in other areas can progress, since the process doesn't abort). [1]: dotnet/runtime#52146
Thanks! Happy to see this done! 🎉 |
Implements approved API in #44659 (comment).
Add support for
HNDTYPE_REFCOUNTED
GC handle type under specificFEATURE_
defines.Fixes #44659
/cc @VSadov @Maoni0 @jkotas @jkoritzinsky @elinor-fung @rolfbjarne @lambdageek @davidwrighton @janvorli