react-native/React
Mehdi Mulani 1f9fc0ee3a Stop CxxBridge run loop when bridge is invalidated
Summary:
This fixes the `testModulesAreDeallocated` test. It was sometimes failing because the bridge's module was still alive. I debugged with the Xcode memory graph and found that the bridge was actually kept alive by a pointer from the NSThread.
By killing the runloop on the thread, the thread will eventually die and thus free the bridge.

One thing I didn't investigate was whether the thread was alive because of it receiving actual messages or just because the run loop was spinning.

Reviewed By: javache

Differential Revision: D5729925

fbshipit-source-id: 304f526129d2c5e137bfd791a6f957f6169b783e
2017-08-30 09:46:31 -07:00
..
Base encapsulate JS source in RCTSource object 2017-08-30 06:29:42 -07:00
CxxBridge Stop CxxBridge run loop when bridge is invalidated 2017-08-30 09:46:31 -07:00
CxxModule Fix format specifier used in RCTCxxMethod 2017-08-08 11:55:17 -07:00
CxxUtils More efficient dynamic->NSString conversion. 2017-07-26 18:31:12 -07:00
DevSupport Expose webSocketDidOpen in RCTReconnectingWebSocket 2017-08-29 08:06:03 -07:00
Executors Add more information to `__fbBatchedBridge is undefined` error 2017-07-26 11:21:59 -07:00
Inspector Remove 'Debug JS on-device (experimental)' feature 2017-08-29 04:29:57 -07:00
Modules Fix ENABLE_INSPECTOR ifdef not found during dev 2017-08-24 10:46:50 -07:00
Profiler Configure requiresMainQueueSetup for core modules 2017-08-07 07:04:36 -07:00
React.xcodeproj RCTShadowView have got `rootView` property 2017-08-24 00:05:48 -07:00
ReactLegacy.xcodeproj Add support for Cxx objects as arguments to native modules 2017-08-14 05:22:17 -07:00
Views Expose barStyle for NavigatorIOS and TabBarIOS 2017-08-25 00:14:46 -07:00
third-party.xcconfig More attempts to fix Travis CI runs 2017-05-10 04:32:54 -07:00