diff --git a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp index 00203fcb686a95..d6cd5471d773fc 100644 --- a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp @@ -110,7 +110,11 @@ class HermesJSRuntime : public JSRuntime { } void unstable_initializeOnJsThread() override { + // On new arch, we're seeing a crash in release optimized builds here. Adding this as a stopgap measure to prevent + // the crash to allow us to more thoroughly test new arch while this is investigated. +#ifdef HERMES_ENABLE_PROFILING runtime_->registerForProfiling(); +#endif } private: