From 765801dfc283b90c7054a64d182b359e859dbb50 Mon Sep 17 00:00:00 2001 From: Satish Sampath Date: Tue, 1 Dec 2015 08:04:19 -0800 Subject: [PATCH] Improve JSC GC implementation on android Reviewed By: astreet Differential Revision: D2657643 fb-gh-sync-id: a049ee745de9a066a4a2da2762ec6a2f1517c78b --- ReactAndroid/src/main/jni/react/JSCExecutor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp index 52eb369e7..5e6caae26 100644 --- a/ReactAndroid/src/main/jni/react/JSCExecutor.cpp +++ b/ReactAndroid/src/main/jni/react/JSCExecutor.cpp @@ -26,6 +26,10 @@ using fbsystrace::FbSystraceSection; // Add native performance markers support #include +#ifdef WITH_FB_JSC_TUNING +#include +#endif + using namespace facebook::jni; namespace facebook { @@ -82,6 +86,11 @@ JSCExecutor::JSCExecutor(FlushImmediateCallback cb) : s_globalContextRefToJSCExecutor[m_context] = this; installGlobalFunction(m_context, "nativeFlushQueueImmediate", nativeFlushQueueImmediate); installGlobalFunction(m_context, "nativeLoggingHook", nativeLoggingHook); + + #ifdef WITH_FB_JSC_TUNING + configureJSCForAndroid(); + #endif + #ifdef WITH_JSC_EXTRA_TRACING addNativeTracingHooks(m_context); addNativeProfilingHooks(m_context);