-
Notifications
You must be signed in to change notification settings - Fork 588
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
Leak the global static mutex in CKTextKitContext to avoid static destructor fiasco #906
Conversation
…ructor fiasco I haven't tested this code, but this is what I would try to resolve facebook#892. Someone should run some smoke tests with something like the above
Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours has expired. Before we can review or merge your code, we need you to email [email protected] with your details so we can update your status. |
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.
Makes sense to me in general. Let's check if this doesn't break anything
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
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.
@gkassabli has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Try to solve #13588 ref: facebook/componentkit#906 Pull Request resolved: #22607 Differential Revision: D14084056 Pulled By: shergin fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
Summary: Try to solve facebook#13588 ref: facebook/componentkit#906 Pull Request resolved: facebook#22607 Differential Revision: D14084056 Pulled By: shergin fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
Summary: Try to solve facebook#13588 ref: facebook/componentkit#906 Pull Request resolved: facebook#22607 Differential Revision: D14084056 Pulled By: shergin fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
Summary: Try to solve facebook#13588 ref: facebook/componentkit#906 Pull Request resolved: facebook#22607 Differential Revision: D14084056 Pulled By: shergin fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
Summary: Try to solve facebook#13588 ref: facebook/componentkit#906 Pull Request resolved: facebook#22607 Differential Revision: D14084056 Pulled By: shergin fbshipit-source-id: 585aef758e1a215e825ae12914c5011d790a69b0
Summary: This intentionally leaks the static map, since it still might be accessed after static destructors are run. This is a common approach to this problem, see #22607 and facebook/componentkit#906 as examples. It also sets up an autorelease pool from `RCTNativeModule::invoke` as a precaution since there's no strict guarantee one exists when it is called. Changelog: [iOS][Fixed] - Fix crash in RCTCoreModulesClassProvider during quit Reviewed By: RSNara Differential Revision: D27932062 fbshipit-source-id: fa75da4b78290027a762440ac6943c81b8594a57
I haven't tested this code, but this is what I would try to resolve #892. Someone should run some smoke tests with something like the above