Bug 27430

Summary: Java model hangs onto many ClassFile objects
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Nick Edgar CLA 2002-11-29 15:02:21 EST
build I20021127

- start eclipse in the resource perspective with no editors open
- using Open Resource to open a Java file
- it creates 7134 instances of org.eclipse.jdt.internal.core.ClassFile, 
accounting for 250K just for these objects.  There's undoubtedly at least this 
amount of space needed for strings.  There were also 469 JarPackageFragment, 
358 JarPackageFragmentInfo and 360 JarEntryFile objects.  These might not be 
large, but I suspect the jar infos hang onto the ClassFiles in their list of 
children.
Comment 1 Nick Edgar CLA 2002-11-29 15:02:56 EST
Noticed this while investigating bug 20844.
Comment 2 Philipe Mulet CLA 2002-12-09 11:43:39 EST
They only hold onto classfile handles (not their bytes).
This is likely a consequence of triggering reconcile with errors.
Comment 3 Philipe Mulet CLA 2003-01-08 05:45:28 EST
Closing