Project: Eclipse_Platform_UI
Bug 348798 The timer code in HandledContributionItem creates enourmous numbers of GC'able objects
Reported: 2011-06-08 16:03:29 | Status: resolved fixed

If you open the HeapStatus you can watch it grow by over a meg a second. While it will eventually GC this memory the result is that the garbage collector is 'locking' the system for longer than most apps due to the amount of work it has to do. We know that it's the timerExec because commenting out the code to restart the timer (lines 99-100) stops the heap from growing... Paul, I'm not sure whether this is actually fixable but we ought to look into it anyway to see if we can re-use the contexts.

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/HandledContributionItem.java