Project: Eclipse_Platform_UI
Bug 60520 [Commands] ActionHandler leak
Reported: 2004-04-29 19:25:11 | Status: resolved fixed

I200404281424 Sorry this bug report does not totally pinpoint the problem. It would appear that not all HandlerSubmissions are getting removed from the WorkbenchCommandSupport or are staying around from the handlerSubmissions of the active workbench window. These in turn are hanging on to the ActionHandlers. Test case: Open a Java Editor using the File menu history close the editor <<GC using Optimize It>> <<Mark the current instance count>> Open a Java Editor using the File menu history close the editor <<GC using Optimize It>> Most cases I am seeing up to 300 new ActionHandlers per editor (about 10k).

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/commands/AbstractHandler.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/commands/ActionHandler.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/commands/IHandler.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/HandlerProxy.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/WorkbenchCommandSupport.java