Adding GC Timer Sweeping to Android

Reviewed By: mhahnenberg

Differential Revision: D2972822

fb-gh-sync-id: b0ed28c26e3f1141c798d9d107d9e198611f9dce
shipit-source-id: b0ed28c26e3f1141c798d9d107d9e198611f9dce
This commit is contained in:
Dan Caspi 2016-03-03 04:04:15 -08:00 committed by Facebook Github Bot 5
parent dc13115445
commit d2d00e0fcd
1 changed files with 5 additions and 3 deletions

View File

@ -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