mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9bb7e06747
Summary: `getStackTracesTreeNodeForAlloc` only works for memory that was tracked with `newAlloc`. For now, that is only memory that goes through GC APIs. Various places were calling this function on native memory which was allocated with `malloc`, not GC memory. This led to SIGSEGV on nullptr when trying to take heap profiles of these objects. `newAlloc` could, in theory, work with native memory as well. But building out support for that is outside the scope of this fix. Changelog: [Internal] Reviewed By: jbower-fb Differential Revision: D21667842 fbshipit-source-id: 8403a6668e5ec607972ce6819f78fedb89da3f37