react-native/React
Nick Lockwood 9547a98a68 Fixed deadlock during app startup
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
2016-04-27 09:09:23 -07:00
..
Base Fixed deadlock during app startup 2016-04-27 09:09:23 -07:00
Executors Simplify message passing in JSC-executor 2016-04-27 06:35:27 -07:00
Layout Import css-layout measure mode changes from pull request #163 2016-04-12 07:02:29 -07:00
Modules Add support for delete animation in LayoutAnimation on iOS 2016-04-25 00:19:25 -07:00
Profiler Use indirect jumps on armv7 2016-04-04 06:49:19 -07:00
React.xcodeproj Support the bytecode cache for FBReactKit 2016-04-21 08:59:43 -07:00
Views Removed exported constants for fixed-size views 2016-04-26 04:21:39 -07:00