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

Send and Sync fixes #94

Merged
merged 3 commits into from
Dec 21, 2021
Merged

Send and Sync fixes #94

merged 3 commits into from
Dec 21, 2021

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Dec 21, 2021

#19 made objc2::runtime types !Send, !Sync, !Unpin, !UnwindSafe and !RefUnwindSafe.

This PR rectifies that for: Ivar, Method, Class and Protocol.

Object is intentionally still !Send and !Sync, since its subclasses are not guaranteed to be thread safe.

@madsmtm madsmtm added bug Something isn't working enhancement New feature or request labels Dec 21, 2021
The change to OpaqueData is to make types !UnwindSafe by default
Similar to objc2::runtime::Object
@madsmtm madsmtm merged commit 7a3cb1f into master Dec 21, 2021
@madsmtm madsmtm deleted the send-sync-fixes branch December 21, 2021 21:37
@madsmtm madsmtm mentioned this pull request Jan 6, 2022
80 tasks
@madsmtm madsmtm added this to the objc2 v0.3 milestone Apr 2, 2022
@madsmtm madsmtm added the I-unsound A soundness hole label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request I-unsound A soundness hole
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant