Skip to content

[docs] Document @unsafe_no_objc_tagged_pointer #11887

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

Merged
merged 1 commit into from
Sep 12, 2017
Merged

Conversation

milseman
Copy link
Member

Document @unsafe_no_objc_tagged_pointer

Document @unsafe_no_objc_tagged_pointer
@milseman
Copy link
Member Author

@swift-ci please smoke test and merge

@@ -121,6 +121,10 @@ Should only be used if necessary. This has the effect of forcing inlining to occ

Use of this attribute imposes limitations on what can be in the body. For more details, refer to the [documentation](https://github.com/apple/swift/blob/master/docs/TransparentAttr.rst).

#### `@unsafe_no_objc_tagged_pointer`

This is currently used in the standard library as an additional annotation applied to @objc protocols signifying that any objects which conform to this protocol are not tagged. This means that (on Darwin platforms) such references, unlike AnyObject, have spare bits available from things like restricted memory spaces or alignment.
Copy link
Contributor

@jrose-apple jrose-apple Sep 12, 2017

Choose a reason for hiding this comment

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

"Tagged" isn't really an adjective on its own in this context. I'd go with "are not represented by a tagged pointer", possibly with a link to some further documentation about tagged pointers.

Copy link
Member Author

Choose a reason for hiding this comment

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

Derp, I had adjusted it and commited to my branch 30 seconds after swift-ci merged it!

@swift-ci swift-ci merged commit 27b044e into master Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants