mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-21 02:26:18 +08:00
simplify handleMemoryPressure conditionalization, delete some dead code
Reviewed By: javache Differential Revision: D7803912 fbshipit-source-id: 0bab4be07fc006a208caa75f94b5716c99b5d265
This commit is contained in:
committed by
Facebook Github Bot
parent
09f3d7ab49
commit
042449f24a
@@ -11,6 +11,7 @@
|
||||
#include "SystraceSection.h"
|
||||
#include "MethodCall.h"
|
||||
#include "MessageQueueThread.h"
|
||||
#include "ModuleRegistry.h"
|
||||
#include "RAMBundleRegistry.h"
|
||||
|
||||
#ifdef WITH_FBSYSTRACE
|
||||
@@ -194,13 +195,11 @@ bool NativeToJsBridge::isInspectable() {
|
||||
return m_executor->isInspectable();
|
||||
}
|
||||
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
void NativeToJsBridge::handleMemoryPressure(int pressureLevel) {
|
||||
runOnExecutorQueue([=] (JSExecutor* executor) {
|
||||
executor->handleMemoryPressure(pressureLevel);
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
||||
void NativeToJsBridge::destroy() {
|
||||
// All calls made through runOnExecutorQueue have an early exit if
|
||||
|
||||
Reference in New Issue
Block a user