Issue Type: Improvement Improvement
Affects Versions: current
Assignee: npiguet
Components: sloccount
Created: 22/Feb/14 10:09 AM
Description:

SloccountResult.lazyLoad() caches the data to a member variable. The class is loaded during Jenkins startup (all build.xml files) and never released so Java garbage collector has no chance to trash the lazy loaded details since the reference exists forever. This is kind of a memory leak.

Consider to make "private SloccountReport report" member transient and to use readResolve() from Java Serialization to transform legacy data instead of calling convertLegacyData() in getStatistics().

Found during a work on Cppcheck's JENKINS-17363.

Environment: Version 1.15, introduced in 1.11
Fix Versions: current
Project: Jenkins
Priority: Major Major
Reporter: Michal Turek
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to