Code changed in jenkins
User: Michal Turek
Path:
src/main/java/hudson/plugins/sloccount/SloccountResult.java
http://jenkins-ci.org/commit/sloccount-plugin/32b1fa89cbe28eeb0831db3d1f9dae39bb102a35
Log:
JENKINS-21921 Lazy loaded report details are never released

  • SloccountResult.lazyLoad() caches the data to a member variable. SloccountResult objects (all build.xml files) are loaded during Jenkins startup 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.
  • Lazy loading reads the data everytime and doesn't use any cache, saving of memory is now prefered to performace. It is not expected the user will show the details very often, so it should be ok.
  • Explicit calls of convertLegacyData() replaced by readResolve() from Java serialization with the same effect.
  • Report object made transient, null is always passed in SloccountPublisher while storing.
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/d/optout.

Reply via email to