Commit 0d14d582 authored by swift_gan's avatar swift_gan

suspendVM < 7.0

parent 134a3f6c
...@@ -59,7 +59,16 @@ extern "C" { ...@@ -59,7 +59,16 @@ extern "C" {
innerResumeVM = reinterpret_cast<void (*)()>(fake_dlsym(art_lib, innerResumeVM = reinterpret_cast<void (*)()>(fake_dlsym(art_lib,
"_ZN3art3Dbg8ResumeVMEv")); "_ZN3art3Dbg8ResumeVMEv"));
} }
} else {
art_lib = dlopen(art_lib_path, RTLD_NOW);
if (art_lib > 0) {
innerSuspendVM = reinterpret_cast<void (*)()>(dlsym(art_lib,
"_ZN3art3Dbg9SuspendVMEv"));
innerResumeVM = reinterpret_cast<void (*)()>(dlsym(art_lib,
"_ZN3art3Dbg8ResumeVMEv"));
}
} }
//init for getObject & JitCompiler //init for getObject & JitCompiler
if (SDK_INT < 23) { if (SDK_INT < 23) {
void *handle = dlopen("libart.so", RTLD_LAZY | RTLD_GLOBAL); void *handle = dlopen("libart.so", RTLD_LAZY | RTLD_GLOBAL);
......
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