-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Avoid retaining TurboModuleManager in AppDelegate #37104
Conversation
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC Differential Revision: D45310066 fbshipit-source-id: 9dd0a713cd6015d8ec147c8d98d8fa548b90cb16
This pull request was exported from Phabricator. Differential Revision: D45310066 |
85527d2
to
92801c2
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC Differential Revision: D45310066 fbshipit-source-id: 3cece290cb8c48cae7d7735ce227bd60065b5b47
92801c2
to
ef8299d
Compare
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC Differential Revision: D45310066 fbshipit-source-id: 4129e5c3e614b62bbdba298b47b698f7c9f976d0
ef8299d
to
4e25612
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Base commit: 0dcf81b |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 95f466a4266516b26dc37c8d5dbc697c545973c9
4e25612
to
d06bbb0
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 416105a3fdf03ed0b4f7330c5ba5fd7fe7be21c2
d06bbb0
to
a5860f2
Compare
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 51ab1031b7573118ba664d981aa9eaaf061b4146
a5860f2
to
d83a5e4
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 8f369ecd980332acbd4c08d872c9296233221991
d83a5e4
to
c327312
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 4ca8bc4b394f208ca2e7e817fa247e921a437052
c327312
to
d794de3
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
This pull request was exported from Phabricator. Differential Revision: D45310066 |
d794de3
to
a2dd5be
Compare
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 2363d57527eca0b3ceee25fb32159029423a16b1
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 378c11710d119198782f7a4cba9781842a72e8bc
a2dd5be
to
818f01e
Compare
This pull request was exported from Phabricator. Differential Revision: D45310066 |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: d28b4a24ebf745c5faea6b29390bc62aca949172
818f01e
to
4dc795a
Compare
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 5263280e14d959f0d7530571e2614a59c8838088
This pull request was exported from Phabricator. Differential Revision: D45310066 |
4dc795a
to
7050567
Compare
This pull request has been merged in ec1ab73. |
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 4199c9973d832cc07fd32b94f2dcbaa72f4d3920
Summary: Pull Request resolved: facebook#37104 The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context. Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager. Reviewed By: sammy-SC, cipolleschi Differential Revision: D45310066 fbshipit-source-id: 4199c9973d832cc07fd32b94f2dcbaa72f4d3920
Summary:
The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context.
Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager.
Differential Revision: D45310066