-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[arc] Make all *RefCountStates and RCStateTransition trivially destru… #1338
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
Conversation
@swift-ci Please smoke test OS X platform |
@swift-ci Please test Linux Platform |
The Swift Test OS X Platform failed b/c I asked Mishal to kill it. I just wanted a smoke test on linux/OSX. |
@swift-ci Please test Linux Platform |
0e03ff7
to
f34adb2
Compare
@swift-ci Please test Linux Platform |
@swift-ci Please smoke test OS X platform |
// These static assert checks are here for performance reasons. | ||
static_assert(IsTriviallyCopyable<RCStateTransition>::value, | ||
"RCStateTransitions must be trivially copyable"); | ||
static_assert(IsTriviallyDestructible<RCStateTransition>::value, |
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.
IsTriviallyCopyable implies IsTriviallyDestructible. [citation]
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.
Touche. I did get a little trigger happy.
…ctable and constructable. Tested via static assert. There is no reason for these data structures to not have these properties. Adding these properties will improve the compile time efficiency of ARC by allowing for cheaper copying and 0 cost destruction.
f34adb2
to
d55ebae
Compare
OS X smoke test is taking too long. The linux test passed. On my machine, the mac os x tests pass. |
[arc] Make all *RefCountStates and RCStateTransition trivially destru…
…ctable and constructable.
Tested via static assert.
There is no reason for these data structures to not have these properties.
Adding these properties will improve the compile time efficiency of ARC by
allowing for cheaper copying and 0 cost destruction.