react-native-macos/React/CxxBridge
Samuel Susla 34d189ae09 Introducing Leak Checker
Summary:
Changelog: [internal]

Introducing LeakChecker. A tool that checks if all native components have been cleaned up when surface is stopped.

**Known shortcomings**:
- LeakChecker is only enabled in debug builds and the existence of leaks is logged to console.
- For now, Leak Checker looks at N-1 screen. This is intentional as there is a known limitation of React that doesn't free up all shadow nodes when surface is stopped. Because of this, the use of LeakChecker is not intuitive and I'll work with React team to try to work around this.
- It doesn't help locating the leak, it only informs that leak is present. I'll be looking into ways to help locate the leak.

Reviewed By: JoshuaGross, mdvacca

Differential Revision: D26727461

fbshipit-source-id: 8350190b99f24642f8e15a3c2e1d79cfaa810d3d
2021-03-17 02:57:37 -07:00
..
JSCExecutorFactory.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
JSCExecutorFactory.mm Upstream RN macOS Hermes integration bits (#29748) 2020-08-27 01:18:33 -07:00
NSDataBigString.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
NSDataBigString.mm Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTCxxBridge.mm Introducing Leak Checker 2021-03-17 02:57:37 -07:00
RCTCxxBridgeDelegate.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTJSIExecutorRuntimeInstaller.h Upstream RN macOS Hermes integration bits (#29748) 2020-08-27 01:18:33 -07:00
RCTJSIExecutorRuntimeInstaller.mm Upstream RN macOS Hermes integration bits (#29748) 2020-08-27 01:18:33 -07:00
RCTMessageThread.h Fix ASAN crash in RCTMessageThread 2020-10-13 15:37:52 -07:00
RCTMessageThread.mm Fix ASAN crash in RCTMessageThread 2020-10-13 15:37:52 -07:00
RCTObjcExecutor.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTObjcExecutor.mm Split loadApplicationScript into initializeRuntime and loadBundle (#27844) 2020-04-01 17:52:39 -07:00