- Use graphiti chess example as AUT.
- Use Yourkit java profiler
When launched from Q7, after each Graphiti editor open/close there are two instances of DomainEventDispatcher being left in memory and not being GCed. When launched without Q7, they are collected fine.
There are two possible places in Q7 which might cause this:
- SWTEventManager.menuSources – weak hash map where keys are menus and values are controls. So that when control has a strong reference on menu, items won't be collected. However this map is being cleaned during recording, but starting and ending recording does not solve the problem, so leak is somewhere else.
- TeslaEventManager.popupMenuParents – hash map which is never being cleaned.