+ remove class definitions for sticking around (by forcing eager metadata initialization)
+ improve cache size by eliminating the numbers of method metadata objects created
+ improve lookup access on method metadata
This commit is contained in:
Costin Leau
2010-01-29 14:27:49 +00:00
parent 39f81760f8
commit ee2b1cde82
4 changed files with 46 additions and 56 deletions

View File

@@ -48,7 +48,8 @@ public class CachingMetadataReaderLeakTest {
@Test
public void testSignificantLoad() throws Exception {
URL url = getClass().getResource("/org/springframework/beans/TestBean.class");
// the biggest public class in the JDK (>60k)
URL url = getClass().getResource("/java/awt/Component.class");
assertThat(url, notNullValue());
// look at a LOT of items
@@ -71,5 +72,8 @@ public class CachingMetadataReaderLeakTest {
MetadataReader reader = mrf.getMetadataReader(resource);
assertThat(reader, notNullValue());
}
// useful for profiling to take snapshots
//System.in.read();
}
}