Home
last modified time | relevance | path

Searched refs:class_loader (Results 1 – 25 of 84) sorted by relevance

1234

/art/dex2oat/driver/
Dcompiler_driver_test.cc45 void CompileAllAndMakeExecutable(jobject class_loader) REQUIRES(!Locks::mutator_lock_) { in CompileAllAndMakeExecutable() argument
47 dex_files_ = GetDexFiles(class_loader); in CompileAllAndMakeExecutable()
48 CompileAll(class_loader, dex_files_, &timings); in CompileAllAndMakeExecutable()
50 MakeAllExecutable(class_loader); in CompileAllAndMakeExecutable()
53 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method, in EnsureCompiled() argument
56 CompileAllAndMakeExecutable(class_loader); in EnsureCompiled()
71 void MakeAllExecutable(jobject class_loader) { in MakeAllExecutable() argument
72 const std::vector<const DexFile*> class_path = GetDexFiles(class_loader); in MakeAllExecutable()
76 MakeDexFileExecutable(class_loader, *dex_file); in MakeAllExecutable()
93 void MakeDexFileExecutable(jobject class_loader, const DexFile& dex_file) { in MakeDexFileExecutable() argument
[all …]
Dcompiler_driver-inl.h38 Handle<mirror::ClassLoader> class_loader, in ResolveClass() argument
42 DCHECK_EQ(class_loader.Get(), mUnit->GetClassLoader().Get()); in ResolveClass()
44 mUnit->GetClassLinker()->ResolveType(cls_index, dex_cache, class_loader); in ResolveClass()
56 Handle<mirror::ClassLoader> class_loader, in ResolveCompilingMethodsClass() argument
59 DCHECK_EQ(class_loader.Get(), mUnit->GetClassLoader().Get()); in ResolveCompilingMethodsClass()
62 return ResolveClass(soa, dex_cache, class_loader, referrer_method_id.class_idx_, mUnit); in ResolveCompilingMethodsClass()
67 Handle<mirror::ClassLoader> class_loader, in ResolveField() argument
71 field_idx, dex_cache, class_loader, is_static); in ResolveField()
Dcompiler_driver.h104 void PreCompile(jobject class_loader,
110 void CompileAll(jobject class_loader,
141 Handle<mirror::ClassLoader> class_loader,
147 Handle<mirror::ClassLoader> class_loader,
156 Handle<mirror::ClassLoader> class_loader,
236 void Resolve(jobject class_loader,
240 void ResolveDexFile(jobject class_loader,
250 bool FastVerify(jobject class_loader,
255 void Verify(jobject class_loader,
260 void VerifyDexFile(jobject class_loader,
[all …]
/art/dex2oat/dex/
Ddex_to_dex_decompiler_test.cc40 void CompileAll(jobject class_loader) REQUIRES(!Locks::mutator_lock_) { in CompileAll() argument
47 new verifier::VerifierDeps(GetDexFiles(class_loader))); in CompileAll()
48 std::vector<const DexFile*> dex_files = GetDexFiles(class_loader); in CompileAll()
49 CommonCompilerDriverTest::CompileAll(class_loader, dex_files, &timings); in CompileAll()
63 jobject class_loader; in RunTest() local
67 class_loader = LoadDex(dex_name); in RunTest()
68 updated_dex_file = GetDexFiles(class_loader)[0]; in RunTest()
70 *updated_dex_file, soa.Decode<mirror::ClassLoader>(class_loader)); in RunTest()
79 CompileAll(class_loader); in RunTest()
/art/runtime/
Dclass_loader_utils.h35 Handle<mirror::ClassLoader> class_loader) in IsPathOrDexClassLoader() argument
37 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsPathOrDexClassLoader()
47 Handle<mirror::ClassLoader> class_loader) in IsInMemoryDexClassLoader() argument
49 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsInMemoryDexClassLoader()
55 Handle<mirror::ClassLoader> class_loader) in IsDelegateLastClassLoader() argument
57 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsDelegateLastClassLoader()
70 Handle<mirror::ClassLoader> class_loader, in VisitClassLoaderDexElements() argument
77 GetObject(class_loader.Get()); in VisitClassLoaderDexElements()
113 Handle<mirror::ClassLoader> class_loader, in VisitClassLoaderDexFiles() argument
150 return VisitClassLoaderDexElements(soa, class_loader, visit_dex_files, defaultReturn); in VisitClassLoaderDexFiles()
[all …]
Dclass_table_test.cc75 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F() local
79 hs.NewHandle(class_linker_->FindClass(soa.Self(), descriptor_x, class_loader))); in TEST_F()
81 hs.NewHandle(class_linker_->FindClass(soa.Self(), descriptor_y, class_loader))); in TEST_F()
85 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
86 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
93 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
94 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 1u); in TEST_F()
98 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
99 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
110 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
[all …]
Dclass_linker-inl.h52 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(element_class->GetClassLoader())); in FindArrayClass()
53 ObjPtr<mirror::Class> array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
162 Handle<mirror::ClassLoader> class_loader) { in ResolveType() argument
167 resolved = DoResolveType(type_idx, dex_cache, class_loader); in ResolveType()
211 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedType() argument
214 type = DoLookupResolvedType(type_idx, dex_cache, class_loader); in LookupResolvedType()
271 ObjPtr<mirror::ClassLoader> class_loader) { in CheckInvokeClassMismatch() argument
275 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch()
278 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch()
286 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedMethod() argument
[all …]
Dclass_linker_test.cc181 ObjPtr<mirror::ClassLoader> class_loader) in AssertArrayClass() argument
185 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass()
409 void AssertDexFileClass(ObjPtr<mirror::ClassLoader> class_loader, const std::string& descriptor) in AssertDexFileClass() argument
419 EXPECT_OBJ_PTR_EQ(class_loader, klass->GetClassLoader()); in AssertDexFileClass()
429 void AssertDexFile(const DexFile& dex, ObjPtr<mirror::ClassLoader> class_loader) in AssertDexFile() argument
435 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
441 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
887 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
890 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
896 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
[all …]
Dcommon_runtime_test.cc208 Handle<mirror::ClassLoader> class_loader = hs.NewHandle( in GetDexFiles() local
210 return GetDexFiles(soa, class_loader); in GetDexFiles()
215 Handle<mirror::ClassLoader> class_loader) { in GetDexFiles() argument
217 (class_loader->GetClass() == in GetDexFiles()
219 (class_loader->GetClass() == in GetDexFiles()
224 class_loader, in GetDexFiles()
261 jobject class_loader = Runtime::Current()->GetClassLinker()->CreatePathClassLoader(self, in LoadMultiDex() local
263 self->SetClassLoaderOverride(class_loader); in LoadMultiDex()
264 return class_loader; in LoadMultiDex()
268 jobject class_loader = LoadDexInPathClassLoader(dex_name, nullptr); in LoadDex() local
[all …]
Dhidden_api_test.cc335 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
340 class_linker_->FindClass(soa.Self(), "Lmypackage/packagea/Interface;", class_loader))); in TEST_F()
403 /* out */ ObjPtr<mirror::ClassLoader>* class_loader, in LoadDexFiles() argument
429 *class_loader = h_loader.Get(); in LoadDexFiles()
469 ObjPtr<mirror::ClassLoader> class_loader; in TEST_F() local
472 ASSERT_TRUE(LoadDexFiles(data_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
475 ASSERT_TRUE(CheckAllDexFilesInDomain(class_loader, in TEST_F()
492 ObjPtr<mirror::ClassLoader> class_loader; in TEST_F() local
495 ASSERT_TRUE(LoadDexFiles(system_location_path, soa, &dex_files, &class_loader, &error_msg)) in TEST_F()
498 ASSERT_TRUE(CheckAllDexFilesInDomain(class_loader, in TEST_F()
[all …]
Dclass_linker.h107 virtual void Visit(ObjPtr<mirror::ClassLoader> class_loader)
150 Handle<mirror::ClassLoader> class_loader,
168 Handle<mirror::ClassLoader> class_loader)
194 Handle<mirror::ClassLoader> class_loader,
204 ObjPtr<mirror::ClassLoader> class_loader)
262 Handle<mirror::ClassLoader> class_loader)
282 ObjPtr<mirror::ClassLoader> class_loader)
295 ObjPtr<mirror::ClassLoader> class_loader)
301 ObjPtr<mirror::ClassLoader> class_loader,
310 ObjPtr<mirror::ClassLoader> class_loader,
[all …]
Doat_file_manager.h98 jobject class_loader,
115 jobject class_loader,
127 jobject class_loader,
153 jobject class_loader,
Dtransaction_test.cc37 Handle<mirror::ClassLoader> class_loader( in testTransactionAbort() local
39 ASSERT_TRUE(class_loader != nullptr); in testTransactionAbort()
59 class_loader)); in testTransactionAbort()
65 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
165 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
167 ASSERT_TRUE(class_loader != nullptr); in TEST_F()
170 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F()
261 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
263 ASSERT_TRUE(class_loader != nullptr); in TEST_F()
266 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LInstanceFieldsTest;", class_loader))); in TEST_F()
[all …]
Dproxy_test.cc50 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
54 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
56 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
84 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
88 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
90 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
/art/test/ti-agent/
Djni_binder.h27 jclass GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader);
36 jobject class_loader = nullptr);
Djni_binder.cc155 static jclass FindClassWithClassLoader(JNIEnv* env, const char* class_name, jobject class_loader) { in FindClassWithClassLoader() argument
174 class_loader)); in FindClassWithClassLoader()
177 jclass GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in GetClass() argument
178 if (class_loader != nullptr) { in GetClass()
179 return FindClassWithClassLoader(env, class_name, class_loader); in GetClass()
252 void BindFunctions(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in BindFunctions() argument
254 ScopedLocalRef<jclass> klass(env, GetClass(jvmti_env, env, class_name, class_loader)); in BindFunctions()
/art/runtime/mirror/
Ddex_cache_test.cc84 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local
86 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader); in TEST_F()
98 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local
101 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F()
104 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F()
125 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local
129 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LMethodTypes;", class_loader))); in TEST_F()
155 class_loader)); in TEST_F()
160 class_loader)); in TEST_F()
/art/runtime/ti/
Dagent.cc58 jobject class_loader, in Attach() argument
63 return DoLoadHelper(env, true, class_loader, call_res, error, error_msg); in Attach()
70 jobject class_loader, in DoLoadHelper() argument
78 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper()
110 jobject class_loader, in DoDlOpen() argument
116 class_loader == nullptr in DoDlOpen()
118 : JavaVMExt::GetLibrarySearchPath(env, class_loader)); in DoDlOpen()
125 class_loader, in DoDlOpen()
Dagent.h61 jobject class_loader,
68 jobject class_loader,
74 jobject class_loader,
/art/runtime/jit/
Dprofiling_info_test.cc48 std::vector<ArtMethod*> GetVirtualMethods(jobject class_loader, in GetVirtualMethods() argument
55 hs.NewHandle(self->DecodeJObject(class_loader)->AsClassLoader())); in GetVirtualMethods()
235 jobject class_loader; in TEST_F() local
238 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F()
240 ASSERT_NE(class_loader, nullptr); in TEST_F()
244 std::vector<ArtMethod*> main_methods = GetVirtualMethods(class_loader, "LMain;"); in TEST_F()
262 std::vector<ArtMethod*> second_methods = GetVirtualMethods(class_loader, "LSecond;"); in TEST_F()
290 jobject class_loader; in TEST_F() local
293 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F()
295 ASSERT_NE(class_loader, nullptr); in TEST_F()
[all …]
/art/tools/art_verifier/
Dart_verifier.cc79 jobject class_loader = class_linker->CreatePathClassLoader(self, *out); in Install() local
84 *dex_file, self->DecodeJObject(class_loader)->AsClassLoader()); in Install()
88 return class_loader; in Install()
214 jobject class_loader = Install(runtime, unique_dex_files, &dex_files); in ExecuteWithRuntime() local
215 CHECK(class_loader != nullptr); in ExecuteWithRuntime()
219 soa.Decode<mirror::ClassLoader>(class_loader)); in ExecuteWithRuntime()
/art/runtime/native/
Ddalvik_system_VMStack.cc114 class_loader(nullptr) {} in VMStack_getClosestUserClassLoader()
117 DCHECK(class_loader == nullptr); in VMStack_getClosestUserClassLoader()
123 class_loader = cl; in VMStack_getClosestUserClassLoader()
130 ObjPtr<mirror::Object> class_loader; in VMStack_getClosestUserClassLoader() member
135 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
Djava_lang_VMClassLoader.cc45 ObjPtr<mirror::ClassLoader> class_loader) in LookupClass() argument
48 return cl->LookupClass(self, descriptor, hash, class_loader); in LookupClass()
56 Handle<mirror::ClassLoader> class_loader) in FindClassInPathClassLoader() argument
59 if (cl->FindClassInBaseDexClassLoader(soa, self, descriptor, hash, class_loader, &result)) { in FindClassInPathClassLoader()
/art/runtime/verifier/
Dclass_verifier.cc82 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(klass->GetClassLoader())); in VerifyClass() local
86 class_loader, in VerifyClass()
98 Handle<mirror::ClassLoader> class_loader, in VerifyClass() argument
132 method_idx, dex_cache, class_loader, /* referrer= */ nullptr, type); in VerifyClass()
146 class_loader, in VerifyClass()
/art/dex2oat/
Dcommon_compiler_driver_test.cc33 void CommonCompilerDriverTest::CompileAll(jobject class_loader, in CompileAll() argument
41 compiler_driver_->PreCompile(class_loader, in CompileAll()
51 compiler_driver_->CompileAll(class_loader, dex_files, timings); in CompileAll()

1234