Skip to content

[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

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

gottesmm
Copy link
Contributor

…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.

@gottesmm
Copy link
Contributor Author

@swift-ci Please smoke test OS X platform

@gottesmm
Copy link
Contributor Author

@swift-ci Please test Linux Platform

@gottesmm
Copy link
Contributor Author

The Swift Test OS X Platform failed b/c I asked Mishal to kill it. I just wanted a smoke test on linux/OSX.

@gottesmm
Copy link
Contributor Author

@swift-ci Please test Linux Platform

@gottesmm
Copy link
Contributor Author

@swift-ci Please test Linux Platform

@gottesmm
Copy link
Contributor Author

@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,
Copy link
Contributor

Choose a reason for hiding this comment

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

IsTriviallyCopyable implies IsTriviallyDestructible. [citation]

Copy link
Contributor Author

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.
@gottesmm
Copy link
Contributor Author

OS X smoke test is taking too long. The linux test passed. On my machine, the mac os x tests pass.

gottesmm added a commit that referenced this pull request Feb 18, 2016
[arc] Make all *RefCountStates and RCStateTransition trivially destru…
@gottesmm gottesmm merged commit 9638e29 into swiftlang:master Feb 18, 2016
@gottesmm gottesmm deleted the arc-make-trivial branch February 18, 2016 05:11
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.

2 participants