AnalysisContainer no longer held in memory by PluginData objects.

Since PluginData objects are more persistent than AnalysisContainer,
objects related to the each analysis can not be freed until the next
analysis has been performed, because a reference was held in each
PluginData object.

Change: set the reference to point to null in a finally block after
getServerData call. AnalysisContainer can now be freed by GC at any time

Affected issues: #685
This commit is contained in:
Rsl1122 2018-09-15 10:03:35 +03:00
parent d28e20bf9a
commit f846bd5b0e

View File

@ -118,6 +118,7 @@ public class AnalysisPluginsTabContentCreator {
Log.toLog(AnalysisPluginsTabContentCreator.class, e);
} finally {
Benchmark.stop("Analysis", "Analysis: Source " + source.getSourcePlugin());
source.setAnalysisData(null);
}
});
return containers;