Home
last modified time | relevance | path

Searched refs:loader (Results 1 – 25 of 102) sorted by relevance

12345

/art/test/626-const-class-linking/
Dexpected.txt2 first: Helper1 class loader: DelegatingLoader
3 second: Test class loader: DefiningLoader
4 first: Helper1 class loader: DelegatingLoader
5 second: Test class loader: DefiningLoader
7 first: Helper1 class loader: DelegatingLoader
8 second: Test class loader: DefiningLoader
9 first: Helper2 class loader: DelegatingLoader
10 second: Test class loader: DefiningLoader
12 first: Helper1 class loader: RacyLoader
13 second: Test class loader: DefiningLoader
[all …]
Dclear_dex_cache_types.cc61 ObjPtr<mirror::ClassLoader> loader = as_class->GetClassLoader(); in Java_Main_nativeDumpClasses() local
65 << " definingLoader:" << static_cast<const void*>(loader.Ptr()) in Java_Main_nativeDumpClasses()
67 << (loader != nullptr ? loader->GetClass()->PrettyDescriptor() : "N/A"); in Java_Main_nativeDumpClasses()
/art/test/068-classloader/src/
DMain.java28 FancyLoader loader; in main() local
30 loader = new FancyLoader(ClassLoader.getSystemClassLoader()); in main()
54 testAccess1(loader); in main()
55 testAccess2(loader); in main()
56 testAccess3(loader); in main()
58 testExtend(loader); in main()
59 testExtendOkay(loader); in main()
60 testInterface(loader); in main()
61 testAbstract(loader); in main()
62 testImplement(loader); in main()
[all …]
/art/test/692-vdex-inmem-loader/src/
DMain.java43 private static void test(ClassLoader loader, in test() argument
53 check(expectedClassesVerified, areClassesVerified(loader), "areClassesVerified"); in test()
54 check(expectedHasVdexFile, hasVdexFile(loader), "areClassesVerified"); in test()
55 check(expectedBackedByOat, isBackedByOatFile(loader), "isBackedByOatFile"); in test()
56 check(expectedBackedByOat, areClassesPreverified(loader), "areClassesPreverified"); in test()
59 loader.loadClass("art.ClassB").getDeclaredMethod("printHello").invoke(null); in test()
62 String filter = getCompilerFilter(loader.loadClass("art.ClassB")); in test()
124 private static native boolean areClassesVerified(ClassLoader loader); in areClassesVerified() argument
125 private static native boolean hasVdexFile(ClassLoader loader); in hasVdexFile() argument
126 private static native boolean isBackedByOatFile(ClassLoader loader); in isBackedByOatFile() argument
[all …]
/art/test/141-class-unload/src/
DMain.java108 WeakReference<ClassLoader> loader = setUpUnloadLoader(constructor, true); in testUnloadLoader() local
112 System.out.println(loader.get()); in testUnloadLoader()
128 WeakReference<ClassLoader> loader = setUpLoadLibrary(constructor); in testLoadAndUnloadLibrary() local
132 System.out.println(loader.get()); in testLoadAndUnloadLibrary()
135 private static Object testNoUnloadHelper(ClassLoader loader) throws Exception { in testNoUnloadHelper() argument
136 Class<?> intHolder = loader.loadClass("IntHolder"); in testNoUnloadHelper()
151 ClassLoader loader = (ClassLoader) constructor.newInstance( in testNoUnloadInstanceHelper() local
153 Object o = testNoUnloadHelper(loader); in testNoUnloadInstanceHelper()
154 return new Pair(o, loader); in testNoUnloadInstanceHelper()
166 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpUnloadClass() local
[all …]
/art/test/949-in-memory-transform/src/art/
DTest949.java90 ClassLoader loader; in run() local
93 loader = (ClassLoader)Class.forName("dalvik.system.InMemoryDexClassLoader") in run()
99 loader = new ClassLoader() { in run()
109 doTest(loader); in run()
112 public static void doTest(ClassLoader loader) throws Exception { in doTest() argument
114 Class<?> transform_class = loader.loadClass("Transform"); in doTest()
/art/runtime/
Ddebug_print.cc63 std::string DescribeLoaders(ObjPtr<mirror::ClassLoader> loader, const char* class_descriptor) { in DescribeLoaders() argument
76 if (loader == nullptr) { in DescribeLoaders()
79 for (; loader != nullptr; loader = loader->GetParent()) { in DescribeLoaders()
80 ClassTable* table = Runtime::Current()->GetClassLinker()->ClassTableForClassLoader(loader); in DescribeLoaders()
81 oss << loader_separator << loader->GetClass()->PrettyDescriptor() in DescribeLoaders()
96 if (loader->GetClass() == path_class_loader || in DescribeLoaders()
97 loader->GetClass() == dex_class_loader || in DescribeLoaders()
98 loader->GetClass() == delegate_last_class_loader) { in DescribeLoaders()
102 Handle<mirror::ClassLoader> handle(hs.NewHandle(loader)); in DescribeLoaders()
/art/test/626-const-class-linking/src/
DRacyMisbehavingHelper.java25 ClassLoader loader = helper1_class.getClassLoader(); in get() local
26 Method reportAfterLoading = loader.getClass().getDeclaredMethod("reportAfterLoading"); in get()
27 reportAfterLoading.invoke(loader); in get()
/art/test/612-jit-dex-cache/src-art/
DMain.java46 ClassLoader loader = new DelegateLastPathClassLoader(DEX_FILE, Main.class.getClassLoader()); in classFromDifferentLoader() local
47 return loader.loadClass("LoadedByAppClassLoader"); in classFromDifferentLoader()
60 ClassLoader loader = (ClassLoader) m.invoke(null); in main() local
61 if (loader != cls.getClassLoader()) { in main()
/art/test/616-cha-unloading/src-art/
DMain.java53 WeakReference<ClassLoader> loader = result.cl; in testUnload() local
56 if (loader.get() != null) { in testUnload()
78 ClassLoader loader = sConstructor.newInstance( in setupLoader() local
80 Class<?> concreteCHATester = loader.loadClass("ConcreteCHATester"); in setupLoader()
93 return new CHAUnloaderRetType(new WeakReference(loader), ret, artMethod); in setupLoader()
/art/openjdkjvmti/
Dti_class_loader.cc64 art::Handle<art::mirror::ClassLoader> loader, in AddToClassLoader() argument
68 if (art::ClassLinker::IsBootClassLoader(soa, loader.Get())) { in AddToClassLoader()
73 hs.NewHandle(FindSourceDexFileObject(self, loader))); in AddToClassLoader()
139 art::Handle<art::mirror::ClassLoader> loader) { in GetDexElementList() argument
153 art::Handle<art::mirror::Class> loader_class(hs.NewHandle(loader->GetClass())); in GetDexElementList()
164 hs.NewHandle(path_list_field->GetObject(loader.Get()))); in GetDexElementList()
173 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader) { in FindSourceDexFileObject() argument
176 loader, in FindSourceDexFileObject()
Dti_class_loader.h61 art::Handle<art::mirror::ClassLoader> loader,
69 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader)
76 art::Handle<art::mirror::ClassLoader> loader,
94 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader)
Dti_class_loader-inl.h48 art::Handle<art::mirror::ClassLoader> loader, in VisitDexFileObjects() argument
55 hs.NewHandle(GetDexElementList(self, loader))); in VisitDexFileObjects()
/art/test/692-vdex-inmem-loader/
Dvdex_inmem_loader.cc40 jobject loader) { in Java_Main_areClassesVerified() argument
43 Handle<mirror::ClassLoader> h_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader))); in Java_Main_areClassesVerified()
79 jobject loader) { in Java_Main_hasVdexFile() argument
82 Handle<mirror::ClassLoader> h_loader = hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader)); in Java_Main_hasVdexFile()
107 jobject loader) { in Java_Main_isBackedByOatFile() argument
110 Handle<mirror::ClassLoader> h_loader = hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader)); in Java_Main_isBackedByOatFile()
134 jobject loader) { in Java_Main_areClassesPreverified() argument
137 Handle<mirror::ClassLoader> h_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader))); in Java_Main_areClassesPreverified()
/art/runtime/native/
Djava_lang_reflect_Proxy.cc33 jobject loader, jobjectArray methods, jobjectArray throws) { in Proxy_generateProxy() argument
37 soa, name, interfaces, loader, methods, throws)); in Proxy_generateProxy()
/art/test/1963-add-to-dex-classloader-in-memory/
Dadd_to_loader.cc30 jobject loader,
73 jobject loader, in Java_art_Test1963_addToClassLoaderNative() argument
84 loader, in Java_art_Test1963_addToClassLoaderNative()
/art/test/1964-add-to-dex-classloader-file/
Dadd_to_loader.cc30 jobject loader,
72 jobject loader, in Java_Main_addToClassLoaderNative() argument
84 loader, in Java_Main_addToClassLoaderNative()
/art/test/138-duplicate-classes-check/src-art/
DMain.java37 DexClassLoader loader = new DexClassLoader(dexPath, optimizedDirectory, librarySearchPath, in run() local
41 Class<?> testEx = loader.loadClass("TestEx"); in run()
/art/test/636-wrong-static-access/src/
DMain.java31 ClassLoader loader = (ClassLoader) constructor.newInstance( in main() local
33 Class<?> foo = loader.loadClass("Foo"); in main()
/art/test/693-vdex-inmem-loader-evict/src/
DMain.java52 ClassLoader loader = loadDex(i); in main() local
54 check(true, hasVdexFile(loader), "Loading dex file should have produced a vdex"); in main()
62 ClassLoader loader = loadDex(i); in main() local
64 check(true, hasVdexFile(loader), "Loading dex file should have produced a vdex"); in main()
75 private static native boolean hasVdexFile(ClassLoader loader); in hasVdexFile() argument
/art/test/086-null-super/src/
DMain.java148 BrokenDexLoader loader; in testFailLoadAndGc() local
150 loader = new BrokenDexLoader(ClassLoader.getSystemClassLoader()); in testFailLoadAndGc()
151 loader.findBrokenClass(); in testFailLoadAndGc()
/art/test/071-dexfile-get-static-size/src/
DMain.java21 ClassLoader loader = Main.class.getClassLoader(); in getDexFileSize() local
22 Class<?> DexFile = loader.loadClass("dalvik.system.DexFile"); in getDexFileSize()
/art/test/156-register-dex-file-multi-loader/src/
DMain.java27 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader() local
28 Class<?> baseDexClassLoader = loader.getClass().getSuperclass(); in MyClassLoader()
31 Object pathList = f.get(loader); in MyClassLoader()
/art/test/661-classloader-allocator/src/
DMain.java52 ClassLoader loader = (ClassLoader) constructor.newInstance( in loadClass() local
54 Class<?> otherClass = loader.loadClass("p1.OtherClass"); in loadClass()
/art/test/496-checker-inlining-class-loader/src/
DMain.java27 ClassLoader loader = getClass().getClassLoader(); in MyClassLoader() local
28 Class<?> baseDexClassLoader = loader.getClass().getSuperclass(); in MyClassLoader()
31 Object pathList = f.get(loader); in MyClassLoader()

12345