Skip to content

[5.10][Runtime] Lazily copy ivar list in initObjCClass. #68871

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
Oct 2, 2023

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Sep 29, 2023

Cherry-pick #68834 to release/5.10.

There's often nothing that needs to be fixed up in the ivar list. In that case, we can avoid copying it. This saves time and memory, and allows the class rodata to be in immutable memory.

rdar://116189946

There's often nothing that needs to be fixed up in the ivar list. In that case, we can avoid copying it. This saves time and memory, and allows the class rodata to be in immutable memory.

rdar://116189946
(cherry picked from commit 641870a)
@mikeash mikeash requested a review from a team as a code owner September 29, 2023 17:34
@mikeash
Copy link
Contributor Author

mikeash commented Sep 29, 2023

@swift-ci please test

@mikeash mikeash merged commit b85cdc1 into swiftlang:release/5.10 Oct 2, 2023
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