Commit ec95d24f authored by swift_gan's avatar swift_gan

add global jit compiler check

parent 67982050
......@@ -100,6 +100,10 @@ extern "C" {
}
bool canCompile() {
if (!getGlobalJitCompiler()) {
LOGE("JIT not init!");
return false;
}
JNIEnv *env;
jvm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6);
return getBooleanFromJava(env, "com/swift/sandhook/SandHookConfig",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment