Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/JniLibrary.cpp

Issue 29354787: Issue 4442 - Cache class and ctors references in JNI_Load/UnLoad (Closed)
Patch Set: Created Sept. 23, 2016, 12:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/jni/JniLibrary.cpp
diff --git a/libadblockplus-android/jni/JniLibrary.cpp b/libadblockplus-android/jni/JniLibrary.cpp
index 6f9b56267688837d374e2e30d15650a76e0dd793..ba8f432705a46d2128a01224088d6e602fcbf097 100644
--- a/libadblockplus-android/jni/JniLibrary.cpp
+++ b/libadblockplus-android/jni/JniLibrary.cpp
@@ -16,6 +16,11 @@
*/
#include "JniJsValue.h"
+#include "JniFilter.h"
+#include "JniLogSystem.h"
+#include "JniCallbacks.h"
+#include "JniNotification.h"
+#include "JniWebRequest.h"
#include "Utils.h"
jint JNI_OnLoad(JavaVM* vm, void* reserved)
@@ -27,6 +32,12 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
}
JniJsValue_OnLoad(vm, env, reserved);
+ JniFilter_OnLoad(vm, env, reserved);
+ JniLogSystem_OnLoad(vm, env, reserved);
+ JniCallbacks_OnLoad(vm, env, reserved);
+ JniNotification_OnLoad(vm, env, reserved);
+ JniWebRequest_OnLoad(vm, env, reserved);
+ JniUtils_OnLoad(vm, env, reserved);
return ABP_JNI_VERSION;
}
@@ -40,4 +51,10 @@ void JNI_OnUnload(JavaVM* vm, void* reserved)
}
JniJsValue_OnUnload(vm, env, reserved);
+ JniFilter_OnUnload(vm, env, reserved);
+ JniLogSystem_OnUnload(vm, env, reserved);
+ JniCallbacks_OnUnload(vm, env, reserved);
+ JniNotification_OnUnload(vm, env, reserved);
+ JniWebRequest_OnUnload(vm, env, reserved);
+ JniUtils_OnUnload(vm, env, reserved);
}

Powered by Google App Engine
This is Rietveld