diff --git a/lsplant/src/main/jni/lsplant.cc b/lsplant/src/main/jni/lsplant.cc index 9968127..3851511 100644 --- a/lsplant/src/main/jni/lsplant.cc +++ b/lsplant/src/main/jni/lsplant.cc @@ -268,14 +268,14 @@ bool InitNative(JNIEnv *env, const HookHandler &handler) { LOGE("Failed to init thread"); return false; } - if (!ClassLinker::Init(handler)) { - LOGE("Failed to init class linker"); - return false; - } if (!Class::Init(handler)) { LOGE("Failed to init mirror class"); return false; } + if (!ClassLinker::Init(handler)) { + LOGE("Failed to init class linker"); + return false; + } if (!ScopedSuspendAll::Init(handler)) { LOGE("Failed to init scoped suspend all"); return false;