CastCompilerOptions should be initialized before calling initHideApi
initHideApi will call disableJitInline and CastCompilerOptions is used
This commit is contained in:
parent
cf1708f152
commit
de2f65d17b
|
|
@ -157,9 +157,9 @@ JNIEXPORT jboolean JNICALL
|
|||
Java_com_swift_sandhook_SandHook_initNative(JNIEnv *env, jclass type, jint sdk, jboolean debug) {
|
||||
SDK_INT = sdk;
|
||||
DEBUG = debug;
|
||||
SandHook::CastCompilerOptions::init(env);
|
||||
initHideApi(env);
|
||||
SandHook::CastArtMethod::init(env);
|
||||
SandHook::CastCompilerOptions::init(env);
|
||||
trampolineManager.init(SandHook::CastArtMethod::entryPointQuickCompiled->getOffset());
|
||||
return JNI_TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue