| Summary: | heap gets completely full by end of day; mouse & key response becomes 3-4 seconds | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Mike Reed <mnr102> | ||||||||||
| Component: | cdt-codan | Assignee: | Elena Laskavaia <elaskavaia.cdt> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | cdtdoug, malaperle | ||||||||||
| Version: | 8.0 | ||||||||||||
| Target Milestone: | 8.0 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Mike Reed
Created attachment 180880 [details]
screenshot of heap analysis. Piechart of biggest objs.
Created attachment 180881 [details]
heap analysis's shortest path view of large objs
Created attachment 180882 [details]
heap analysis's accumulated objs view
This is easily reproduce-able for me, so I'm happy to try things if a developer wants to get in touch. Thx, Mike Humm, still need to investigate some more but... WeakHashMap<IASTFunctionDefinition, IControlFlowGraph> cfgmap IControlFlowGraph can contain a node with strong reference to the same IASTFunctionDefinition as the key, for example through AST parents. Mike, is it seen while always working on the same file? Thanks for analysis! There is a bug where cache is not cleaned when new files are opened. Also "weak" part of the hash does not seems to work. Anyway fixed. Also added paranoia mode (don't keep more than 20 elements) As workaround disable all return related checkers *** cdt cvs genie on behalf of elaskavaia *** Bug 327779 - fixed cash items leakage [*] AbstractIndexAstChecker.java 1.13 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractIndexAstChecker.java?root=Tools_Project&r1=1.12&r2=1.13 [*] CxxModelsCache.java 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CxxModelsCache.java?root=Tools_Project&r1=1.4&r2=1.5 Did you mean clearCache instead of clearCash? did I wrote Cash? I guess I typing what I thinking :) Created attachment 181691 [details] Cash to cache (In reply to comment #9) > did I wrote Cash? I guess I typing what I thinking :) |