mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
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:
parent
dc13115445
commit
d2d00e0fcd
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user