Bug 65195

Summary: Leakage switching from incoming to outgoing in Synch view
Product: [Eclipse Project] Platform Reporter: Darin Swanson <Darin_Swanson>
Component: TeamAssignee: Jean-Michel Lemieux <jean-michel_lemieux>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Kevin_Haaland
Version: 3.0Keywords: performance
Target Milestone: 3.0 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Reduced reference graph for UnchangedCompressedDiffNode none

Description Darin Swanson CLA 2004-06-01 18:12:41 EDT
I20040529 (RC1)
I have 5 outgoing changes in three separate folders
No incoming changes

Starting in the incoming mode, using OptimizeIt, Gc'd and marked current 
instance count.
Using the toolbar button, switched to outgoing mode
Back to incoming mode
Gc'd

For each switch back and forth I see (classname | number instance leaked):
org.eclipse.jface.util.ListenerList    11
org.eclipse.team.internal.ui.synchronize.RemoteResourceTypedElement    6
org.eclipse.team.internal.ui.synchronize.SyncInfoModelElement$1  5
org.eclipse.team.internal.ui.synchronize.SyncInfoModelElement    4
org.eclipse.team.internal.ui.synchronize.UnchangedResourceModelElement 3
org.eclipse.core.internal.resources.Folder    3
org.eclipse.team.internal.ui.synchronize.CompressedFoldersModelProvider$Unchang
edCompressedDiffNode    3
org.eclipse.core.runtime.Path   3 
org.eclipse.team.internal.ui.synchronize.CompressedFoldersModelProvider$Compres
sedFolderDiffNode   1

I will attach the reduced ref graph which I believe is the root of the problem
Comment 1 Darin Swanson CLA 2004-06-01 18:14:07 EDT
Created attachment 11433 [details]
Reduced reference graph for UnchangedCompressedDiffNode
Comment 2 Jean-Michel Lemieux CLA 2004-06-07 14:30:16 EDT
Technically not a leak because it would be cleaned up the next time and element
was decorated in the tree, but I will clear the pending label updates on a mode
reset anyway. fix released to HEAD.