-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Now that we support initializing the bridge off the main thread, some of the assumptions in the bridge setup process are no longer safe. In particular we were assuming that the JS executor and injected modules could always be synchronously initialized within bridge init, but that is only safe if those modules don't need to be set up on the main thread. The setup for those modules was sync-dispatching to the main thread if bridge init happened on a background thread, and this lead to a deadlock under certain circumstances. Reviewed By: javache Differential Revision: D3224162 fb-gh-sync-id: 7319b70f541a46ef932cfe4f776e7e192f3ce1e8 fbshipit-source-id: 7319b70f541a46ef932cfe4f776e7e192f3ce1e8
- Loading branch information
1 parent
6a26037
commit 9547a98
Showing
1 changed file
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters