Skip to content

Split the instantiation function into two phases #15016

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
Mar 6, 2018

Conversation

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented Mar 6, 2018

The allocation phase is guaranteed to succeed and just puts enough of the structure together to make things work.

The completion phase does any component metadata lookups that are necessary (for the superclass, fields, etc.) and performs layout; it can fail and require restart.

Next up is to support this in the runtime; then we can start the process of making metadata accessors actually allow incomplete metadata to be fetched.

The allocation phase is guaranteed to succeed and just puts enough
of the structure together to make things work.

The completion phase does any component metadata lookups that are
necessary (for the superclass, fields, etc.) and performs layout;
it can fail and require restart.

Next up is to support this in the runtime; then we can start the
process of making metadata accessors actually allow incomplete
metadata to be fetched.
@rjmccall
Copy link
Contributor Author

rjmccall commented Mar 6, 2018

@swift-ci Please test and merge.

@swift-ci swift-ci merged commit 9bd1ac9 into swiftlang:master Mar 6, 2018
@rjmccall rjmccall deleted the split-metadata-instantiation branch March 6, 2018 17:32
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