react-native/ReactCommon
Valentin Shergin ef6b916e48 Fabric: New approach to manage Yoga's parent/owner references
Summary:
The modern Concurent Yoga's concept is:
We have to set parent/owner reference as part of `appendChild` process only if the current reference to parent/owner is `null`.
The motivation:
 * Null-parent indicates that this node was not attached to anything yet;
 * So, in this case there is no any concurrent memory access because we always create and (first time) attach the node on same thread;
 * Simmetrical parent-child relationship indicates that we don't need to (re)clone assosiated ShadowNode (nor Yoga node).

Reviewed By: mdvacca

Differential Revision: D7467791

fbshipit-source-id: 9a7f517380fde3bb00272de18fd5dc13edb52071
2018-04-10 12:59:51 -07:00
..
cxxreact Specify platforms for the a few targets 2018-04-05 16:02:31 -07:00
exceptions Fabric: Forgotten compiler directive and include 2018-04-10 12:59:50 -07:00
fabric Fabric: New approach to manage Yoga's parent/owner references 2018-04-10 12:59:51 -07:00
jschelpers Specify platforms for the a few targets 2018-04-05 16:02:31 -07:00
jsinspector Update license headers for MIT license 2018-02-16 18:31:53 -08:00
microprofiler Use -fdata-sections in mode/opt 2018-03-12 06:34:59 -07:00
privatedata Skylarkify RN defs. 2018-02-08 09:47:28 -08:00
yoga [yoga re-add assertion to check for owner reference before adding child. 2018-04-04 10:54:35 -07:00