Ticket #628 (closed defect: fixed)
Why memory increases when overwriting ImportsAware doc
| Reported by: | vzholudev | Owned by: | dmisev |
|---|---|---|---|
| Priority: | critical | Milestone: | Release v1.3.0 |
| Component: | System Implementation (SI) | Version: | all |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Due to close: | YYYY/MM/DD | Include in GanttChart: | no |
| Dependencies: | Due to assign: | YYYY/MM/DD |
Description
It seems I know the reason. Assume that you added an ImportAware? object to NotationCollector?. Then when creating a new ImportAware? document with the same path, this document is added to NotationCollector? as well. Thus the reference to the old ImportsAware? is retained in the collector, and therefore this object is not freed from memory. => double some of memory for each added ImportsAware? object to the NotationCollector?.
Btw, I didn't have enough time to understand, which from which ImportsAware? will notations be used? From the old one or from the new one? I guess a method public List<Element> collect(Element mobj) throws Exception from NottaionCollector?.java is responsible for that.
