Huge DefaultOperationHistory [message #509048] |
Thu, 21 January 2010 09:42 |
|
Hi,
I have a DefaultOperationHistory which is full of EMFOperation :
The contexts associated with them are WorkspaceCommandStackImpl$UndoContext.
Sometimes some of these EMFOperations have a huge retained set (keep a lot of memory).
Why all (almost all?) my command (EMF and GMF) are keep in this history with this context? and not only the context of my editor?
How can I remove them when the editor is closed?
I noticed that most of the memory took by EMFOperation is due to DiagramEventThreadSafe. is that normal? Is it needed? Can I remove the reference to the DiagramEventTreadSafe? (in order that it can be GC-ed)
thanks by advance for any hints
Regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
|
Re: Huge DefaultOperationHistory [message #509178 is a reply to message #509164] |
Thu, 21 January 2010 15:11 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Aurelien,
Yes, it's not clear if you've done something wrong or there's something
wrong in the framework. Without a test case, I'm not sure that can be
made clear...
Aurelien Pupier wrote:
> Ed,
>
> thanks again for your quick answer :)
>
> I will post on GMF forum about this subject, in order to know why the
> DiagramEventThreadSafe take all this place and is still referenced.
>
> However it doesn't explain why all these EMFOperation are still there.
> Maybe I registered it by inadvertance, calling some command with the
> wrong context, ...
> Or it is ordinary that all these EMFOperations are kept in
> DefaultOperationHistory and what is wrong is that it kept so much memory?
>
> I don't know exactly in which direction I have to look at.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04112 seconds