react-native-macos/ReactCommon
Valentin Shergin 28a5f122a8 Fabric: `MountingCoordinator::revoke()`
Summary:
MountingCoordinator is a borderline between Core and Mounting. Some of Core design constraints are impossible/impractical to enforce on Mounting layer, so we have to handle all of those cases in `MountingCoordinator`.

One of the constrains is that all ShadowNodes implicitly depend on associated ComponentDescriptor instances without retaining them (retaining is expensive and creates a retain cycle).
The problem is that the Mounting layer can call `MountingCoordinator::pull()` at any moment (even after the whole Core is already destroyed). To prevent this, the owner of a `MountingCoordinator` on the Core side calls `revoke()` right before being deallocated (right before the moment the owner cannot guarantee the constraint).

Reviewed By: JoshuaGross

Differential Revision: D17272295

fbshipit-source-id: ba8b02eab8f84cce68aa65c1ad36950cd2498049
2019-09-09 20:26:25 -07:00
..
better Fabric: Enable CXX (aka Default) platfrom fravour for all C++ Fabric targets 2019-06-04 15:34:34 -07:00
config Fabric: Enable CXX (aka Default) platfrom fravour for all C++ Fabric targets 2019-06-04 15:34:34 -07:00
cxxreact fixing ATOMIC_VAR_INIT call (#26238) 2019-09-09 07:55:25 -07:00
fabric Fabric: `MountingCoordinator::revoke()` 2019-09-09 20:26:25 -07:00
hermes/inspector Fix compile error for native debug build (#26248) 2019-09-03 18:27:55 -07:00
jscallinvoker TM iOS: move jscallinvoker under ReactCommon podspec 2019-07-12 22:44:20 -07:00
jsi Memory Leak due to JSStringRelease not called in multiple places in JSCRuntime.cpp (#25884) 2019-08-20 17:14:01 -07:00
jsiexecutor Remove 's.static_framework = true' requirement for podspec (#25816) 2019-07-25 11:46:43 -07:00
jsinspector Remove 's.static_framework = true' requirement for podspec (#25816) 2019-07-25 11:46:43 -07:00
microprofiler Upgrade mobile BUCK and .bzl files to use C++14 2019-03-16 02:25:33 -07:00
turbomodule Clean up local references created for method calls 2019-09-09 13:21:44 -07:00
utils Fabric: Fixing "No suitable image loader" redbox on hot-reload 2019-09-03 16:49:54 -07:00
yoga Add `DEFINES_MODULE=YES` to the yoga podspec (#26276) 2019-09-02 09:11:33 -07:00
React-Fabric.podspec Remove 's.static_framework = true' requirement for podspec (#25816) 2019-07-25 11:46:43 -07:00
ReactCommon.podspec Fix typos in comments about use_frameworks! (#26381) 2019-09-09 07:23:59 -07:00