Community
Participate
Working Groups
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.
Noticed this while investigating bug 20844.
They only hold onto classfile handles (not their bytes). This is likely a consequence of triggering reconcile with errors.
Closing