• Home
  • Raw
  • Download

Lines Matching refs:constructor

35         Constructor<?> constructor =  in main()  local
38 testUnloadClass(constructor); in main()
39 testUnloadLoader(constructor); in main()
41 testNoUnloadInstance(constructor); in main()
43 testLoadAndUnloadLibrary(constructor); in main()
45 testStackTrace(constructor); in main()
47 stressTest(constructor); in main()
51 testStickyUnload(constructor); in main()
78 private static void stressTest(Constructor<?> constructor) throws Exception { in stressTest() argument
80 setUpUnloadLoader(constructor, false); in stressTest()
95 private static void testUnloadClass(Constructor<?> constructor) throws Exception { in testUnloadClass() argument
96 WeakReference<Class> klass = setUpUnloadClassWeak(constructor); in testUnloadClass()
99 WeakReference<Class> klass2 = setUpUnloadClassWeak(constructor); in testUnloadClass()
106 private static void testUnloadLoader(Constructor<?> constructor) in testUnloadLoader() argument
108 WeakReference<ClassLoader> loader = setUpUnloadLoader(constructor, true); in testUnloadLoader()
115 private static void testStackTrace(Constructor<?> constructor) throws Exception { in testStackTrace() argument
116 Class<?> klass = setUpUnloadClass(constructor); in testStackTrace()
127 private static void testLoadAndUnloadLibrary(Constructor<?> constructor) throws Exception { in testLoadAndUnloadLibrary() argument
128 WeakReference<ClassLoader> loader = setUpLoadLibrary(constructor); in testLoadAndUnloadLibrary()
150 private static Pair testNoUnloadInstanceHelper(Constructor<?> constructor) throws Exception { in testNoUnloadInstanceHelper() argument
151 ClassLoader loader = (ClassLoader) constructor.newInstance( in testNoUnloadInstanceHelper()
157 private static void testNoUnloadInstance(Constructor<?> constructor) throws Exception { in testNoUnloadInstance() argument
158 Pair p = testNoUnloadInstanceHelper(constructor); in testNoUnloadInstance()
165 private static Class<?> setUpUnloadClass(Constructor<?> constructor) throws Exception { in setUpUnloadClass() argument
166 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpUnloadClass()
180 private static Object allocObjectInOtherClassLoader(Constructor<?> constructor) in allocObjectInOtherClassLoader() argument
182 ClassLoader loader = (ClassLoader) constructor.newInstance( in allocObjectInOtherClassLoader()
188 private static void testStickyUnload(Constructor<?> constructor) throws Exception { in testStickyUnload() argument
193 Object o = allocObjectInOtherClassLoader(constructor); in testStickyUnload()
204 private static WeakReference<Class> setUpUnloadClassWeak(Constructor<?> constructor) in setUpUnloadClassWeak() argument
206 return new WeakReference<Class>(setUpUnloadClass(constructor)); in setUpUnloadClassWeak()
209 private static WeakReference<ClassLoader> setUpUnloadLoader(Constructor<?> constructor, in setUpUnloadLoader() argument
212 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpUnloadLoader()
232 private static WeakReference<ClassLoader> setUpLoadLibrary(Constructor<?> constructor) in setUpLoadLibrary() argument
234 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpLoadLibrary()