Merge pull request #134 from C3C0/master
Perform explicit garbage collection before every backupAndHook
This commit is contained in:
commit
93cea40f85
|
|
@ -111,6 +111,7 @@ public class HookMain {
|
|||
if (backup != null) {
|
||||
HookMethodResolver.resolveMethod(hook, backup);
|
||||
}
|
||||
Runtime.getRuntime().gc();
|
||||
if (!backupAndHookNative(target, hook, backup)) {
|
||||
throw new RuntimeException("Failed to hook " + target + " with " + hook);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue