core: fix processing same class several times (#274)
Caution: This change can increase memory usage! However overall decompilation must be faster
This commit is contained in:
@@ -52,6 +52,8 @@ public class JadxWrapper {
|
||||
Thread.sleep(500);
|
||||
}
|
||||
progressMonitor.close();
|
||||
LOG.info("decompilation complete, freeing memory ...");
|
||||
decompiler.getClasses().forEach(JavaClass::unload);
|
||||
LOG.info("done");
|
||||
} catch (InterruptedException e) {
|
||||
LOG.error("Save interrupted", e);
|
||||
|
||||
@@ -51,6 +51,7 @@ public class JClass extends JLoadableNode {
|
||||
public synchronized void load() {
|
||||
if (!loaded) {
|
||||
cls.decompile();
|
||||
cls.unload();
|
||||
loaded = true;
|
||||
}
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user