Community
Participate
Working Groups
With both a 1.4.2 & 1.5 JRE in the workspace, try to open the hierarchy of Object (1.5). Start your workspace 'with only' -Xmx256M. It appears the Java Model Cache is unable to handle the 2 jre's given its current size. "ModalContext" prio=7 tid=0x0324f240 nid=0xf30 runnable [469f000..469fd8c] at java.util.zip.ZipFile.getNextEntry(Native Method) at java.util.zip.ZipFile.access$400(ZipFile.java:26) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:315) - locked <0x16defc20> (a java.util.zip.ZipFile) at o.e.jdt.int.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:86) at o.e.jdt.int.core.PackageFragmentRoot.buildStructure(PackageFragmentRoot.java:174) at o.e.jdt.int.core.Openable.generateInfos(Openable.java:235) at o.e.jdt.int.core.JarPackageFragment.generateInfos(JarPackageFragment.java:113) at o.e.jdt.int.core.JavaElement.openWhenClosed(JavaElement.java:503) at o.e.jdt.int.core.JavaElement.getElementInfo(JavaElement.java:247) at o.e.jdt.int.core.JavaElement.getElementInfo(JavaElement.java:233) at o.e.jdt.int.core.JavaElement.getChildren(JavaElement.java:188) at o.e.jdt.int.core.JavaElement.getChildrenOfType(JavaElement.java:202) at o.e.jdt.int.core.JarPackageFragment.getClassFiles(JarPackageFragment.java:120) at o.e.jdt.int.core.NameLookup.seekTypesInBinaryPackage(NameLookup.java:937) at o.e.jdt.int.core.NameLookup.seekTypes(NameLookup.java:914) at o.e.jdt.int.core.NameLookup.findType(NameLookup.java:710) at o.e.jdt.int.core.NameLookup.findType(NameLookup.java:607) at o.e.jdt.int.core.NameLookup.findType(NameLookup.java:567) at o.e.jdt.int.core.SearchableEnvironment.find(SearchableEnvironment.java:78) at o.e.jdt.int.core.SearchableEnvironment.findType(SearchableEnvironment.java:145)
Size could grow in case of frequent flushes. Need to be investigated during perf cycle. Trace should be more instructive as well.
Just tried to open the hierarchy of Object 1.5 in a workspace with both a 1.4.2 and 1.5 JRE, and I got the result in less than 10s.
Note that I was running with -Xmx128m
Please reopen if you have more details on how to reproduce with latest.