Bug 27430 - Java model hangs onto many ClassFile objects
Summary: Java model hangs onto many ClassFile objects
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-29 15:02 EST by Nick Edgar CLA
Modified: 2003-01-08 05:45 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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