| Summary: | Memory leak: deleted model elements stay in memory forever | ||
|---|---|---|---|
| Product: | [Modeling] EMFStore | Reporter: | Dmitry Litvinov <dlitvinov> |
| Component: | Common | Assignee: | Project Inbox <emfstore.common-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | emueller, mkoegel |
| Version: | unspecified | ||
| Target Milestone: | backlog | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Dmitry Litvinov
Well, after looking over the code once again, I've noticed that deletedEObjectToIdMap and newEObjectToIdMap semantically do the same. I've therefore removed deletedEObjectToIdMap completely. Regarding clearing the elements from the newEObjectToIdMap upon commit or save: this absolutely make sense, but we need to consider the undo mechanism when talking about clearing the caches, because the latter uses the newEObjectToIdMap to retrieve elements that may have possibly deleted. We'll need to check where to best clear the caches and when. caches are cleared on command completion |