diff --git a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp index 04856494a2c..6d2c7e5d887 100644 --- a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp +++ b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp @@ -141,6 +141,10 @@ void JSCExecutor::destroy() { } void JSCExecutor::initOnJSVMThread() { + #if defined(WITH_FB_JSC_TUNING) && !defined(WITH_JSC_INTERNAL) + // TODO: Find a way to pass m_jscConfig to configureJSCForAndroid() + configureJSCForAndroid(m_jscConfig.getDefault("GCTimers", false).asBool()); + #endif m_context = JSGlobalContextCreateInGroup(nullptr, nullptr); s_globalContextRefToJSCExecutor[m_context] = this; installGlobalFunction(m_context, "nativeFlushQueueImmediate", nativeFlushQueueImmediate); @@ -152,9 +156,7 @@ void JSCExecutor::initOnJSVMThread() { installGlobalFunction(m_context, "nativeLoggingHook", JSLogging::nativeHook); - // TODO (t10136849): Pass the config options from map to JSC - - #ifdef WITH_FB_JSC_TUNING + #if defined(WITH_JSC_INTERNAL) && defined(WITH_FB_JSC_TUNING) configureJSCForAndroid(); #endif