Home
last modified time | relevance | path

Searched refs:class_loader (Results 1 – 25 of 100) 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,
143 Handle<mirror::ClassLoader> class_loader,
149 Handle<mirror::ClassLoader> class_loader,
158 Handle<mirror::ClassLoader> class_loader,
232 void Resolve(jobject class_loader,
236 void ResolveDexFile(jobject class_loader,
246 bool FastVerify(jobject class_loader,
251 void Verify(jobject class_loader,
256 void VerifyDexFile(jobject class_loader,
[all …]
Dcompiler_driver.cc335 void CompilerDriver::CompileAll(jobject class_loader, in CompileAll() argument
346 Compile(class_loader, dex_files, timings); in CompileAll()
375 Handle<mirror::ClassLoader> class_loader, in CompileMethodHarness() argument
391 class_loader, in CompileMethodHarness()
422 Handle<mirror::ClassLoader> class_loader, in CompileMethodQuick() argument
433 Handle<mirror::ClassLoader> class_loader, in CompileMethodQuick()
479 class_loader, in CompileMethodQuick()
516 class_loader, in CompileMethodQuick()
522 void CompilerDriver::Resolve(jobject class_loader, in Resolve() argument
535 ResolveDexFile(class_loader, in Resolve()
[all …]
/art/runtime/
Dclass_loader_utils.h35 Handle<mirror::ClassLoader> class_loader) in IsInstanceOfBaseDexClassLoader() argument
37 return class_loader->InstanceOf( in IsInstanceOfBaseDexClassLoader()
44 Handle<mirror::ClassLoader> class_loader) in IsPathOrDexClassLoader() argument
46 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsPathOrDexClassLoader()
56 Handle<mirror::ClassLoader> class_loader) in IsInMemoryDexClassLoader() argument
58 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsInMemoryDexClassLoader()
64 Handle<mirror::ClassLoader> class_loader) in IsDelegateLastClassLoader() argument
66 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsDelegateLastClassLoader()
79 Handle<mirror::ClassLoader> class_loader, in VisitClassLoaderDexElements() argument
86 GetObject(class_loader.Get()); in VisitClassLoaderDexElements()
[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()
107 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
[all …]
Dclass_linker-inl.h55 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(element_class->GetClassLoader())); in FindArrayClass()
56 ObjPtr<mirror::Class> array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
165 Handle<mirror::ClassLoader> class_loader) { in ResolveType() argument
170 resolved = DoResolveType(type_idx, dex_cache, class_loader); in ResolveType()
214 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedType() argument
217 type = DoLookupResolvedType(type_idx, dex_cache, class_loader); in LookupResolvedType()
275 ObjPtr<mirror::ClassLoader> class_loader) { in CheckInvokeClassMismatch() argument
279 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch()
282 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch()
290 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedMethod() argument
[all …]
Dclass_linker_test.cc182 ObjPtr<mirror::ClassLoader> class_loader) in AssertArrayClass() argument
186 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass()
410 void AssertDexFileClass(ObjPtr<mirror::ClassLoader> class_loader, const std::string& descriptor) in AssertDexFileClass() argument
420 EXPECT_OBJ_PTR_EQ(class_loader, klass->GetClassLoader()); in AssertDexFileClass()
430 void AssertDexFile(const DexFile& dex, ObjPtr<mirror::ClassLoader> class_loader) in AssertDexFile() argument
436 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
442 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
897 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
900 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
906 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
[all …]
Dclass_linker.h127 virtual void Visit(ObjPtr<mirror::ClassLoader> class_loader)
182 Handle<mirror::ClassLoader> class_loader,
198 Handle<mirror::ClassLoader> class_loader)
224 Handle<mirror::ClassLoader> class_loader,
234 ObjPtr<mirror::ClassLoader> class_loader)
292 Handle<mirror::ClassLoader> class_loader)
312 ObjPtr<mirror::ClassLoader> class_loader)
317 ObjPtr<mirror::ClassLoader> class_loader)
330 ObjPtr<mirror::ClassLoader> class_loader)
336 ObjPtr<mirror::ClassLoader> class_loader,
[all …]
Doat_file_manager.h96 jobject class_loader,
113 jobject class_loader,
125 jobject class_loader);
143 jobject class_loader,
Dtransaction_test.cc42 Handle<mirror::ClassLoader> class_loader( in testTransactionAbort() local
44 ASSERT_TRUE(class_loader != nullptr); in testTransactionAbort()
64 class_loader)); in testTransactionAbort()
70 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
171 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
173 ASSERT_TRUE(class_loader != nullptr); in TEST_F()
176 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F()
267 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
269 ASSERT_TRUE(class_loader != nullptr); in TEST_F()
272 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LInstanceFieldsTest;", class_loader))); in TEST_F()
[all …]
/art/libnativeloader/
Dnative_loader_lazy.cpp47 jstring CreateClassLoaderNamespace(JNIEnv* env, int32_t target_sdk_version, jobject class_loader, in CreateClassLoaderNamespace() argument
51 return f(env, target_sdk_version, class_loader, is_shared, dex_path, library_path, in CreateClassLoaderNamespace()
56 jobject class_loader, const char* caller_location, jstring library_path, in OpenNativeLibrary() argument
59 return f(env, target_sdk_version, path, class_loader, caller_location, library_path, in OpenNativeLibrary()
73 struct android_namespace_t* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader) { in FindNamespaceByClassLoader() argument
75 return f(env, class_loader); in FindNamespaceByClassLoader()
79 jobject class_loader) { in FindNativeLoaderNamespaceByClassLoader() argument
81 return f(env, class_loader); in FindNativeLoaderNamespaceByClassLoader()
Dnative_loader.cpp141 jobject class_loader, in CreateClassLoaderNamespaceLocked() argument
150 class_loader, in CreateClassLoaderNamespaceLocked()
186 jstring CreateClassLoaderNamespace(JNIEnv* env, int32_t target_sdk_version, jobject class_loader, in CreateClassLoaderNamespace() argument
193 class_loader, in CreateClassLoaderNamespace()
203 UNUSED(env, target_sdk_version, class_loader, is_shared, dex_path, library_path, permitted_path, in CreateClassLoaderNamespace()
210 jobject class_loader, const char* caller_location, jstring library_path, in OpenNativeLibrary() argument
215 if (class_loader == nullptr) { in OpenNativeLibrary()
259 if ((ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader)) == nullptr) { in OpenNativeLibrary()
265 class_loader, in OpenNativeLibrary()
281 UNUSED(env, target_sdk_version, class_loader, caller_location); in OpenNativeLibrary()
[all …]
Dlibrary_namespaces.h57 jobject class_loader, bool is_shared, jstring dex_path,
60 NativeLoaderNamespace* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
64 NativeLoaderNamespace* FindParentNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
Dnative_loader_lazy_test.cpp50 void CallCreateClassLoaderNamespace(const char* class_loader) { in CallCreateClassLoaderNamespace() argument
51 ON_CALL(*mock, JniObject_getParent(StrEq(class_loader))).WillByDefault(Return(nullptr)); in CallCreateClassLoaderNamespace()
53 .WillOnce(Return(TO_MOCK_NAMESPACE(TO_ANDROID_NAMESPACE(class_loader)))); in CallCreateClassLoaderNamespace()
58 env.get()->NewStringUTF(class_loader), in CallCreateClassLoaderNamespace()
Dlibrary_namespaces.cpp91 jobject GetParentClassLoader(JNIEnv* env, jobject class_loader) { in GetParentClassLoader() argument
96 return env->CallObjectMethod(class_loader, get_parent); in GetParentClassLoader()
171 jobject class_loader, bool is_shared, in Create() argument
223 LOG_ALWAYS_FATAL_IF(FindNamespaceByClassLoader(env, class_loader) != nullptr, in Create()
284 NativeLoaderNamespace* parent_ns = FindParentNamespaceByClassLoader(env, class_loader); in Create()
378 std::make_pair(env->NewWeakGlobalRef(class_loader), *app_ns)); in Create()
386 jobject class_loader) { in FindNamespaceByClassLoader() argument
389 return env->IsSameObject(value.first, class_loader); in FindNamespaceByClassLoader()
399 jobject class_loader) { in FindParentNamespaceByClassLoader() argument
400 jobject parent_class_loader = GetParentClassLoader(env, class_loader); in FindParentNamespaceByClassLoader()
/art/libnativeloader/include/nativeloader/
Dnative_loader.h40 JNIEnv* env, int32_t target_sdk_version, jobject class_loader, bool is_shared, jstring dex_path,
44 JNIEnv* env, int32_t target_sdk_version, const char* path, jobject class_loader,
58 JNIEnv* env, jobject class_loader);
62 FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
/art/runtime/jit/
Dprofiling_info_test.cc47 std::vector<ArtMethod*> GetVirtualMethods(jobject class_loader, in GetVirtualMethods() argument
54 hs.NewHandle(self->DecodeJObject(class_loader)->AsClassLoader())); in GetVirtualMethods()
175 jobject class_loader; in TEST_F() local
178 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F()
180 ASSERT_NE(class_loader, nullptr); in TEST_F()
183 std::vector<ArtMethod*> main_methods = GetVirtualMethods(class_loader, "LMain;"); in TEST_F()
203 std::vector<ArtMethod*> second_methods = GetVirtualMethods(class_loader, "LSecond;"); in TEST_F()
232 jobject class_loader; in TEST_F() local
235 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F()
237 ASSERT_NE(class_loader, nullptr); in TEST_F()
[all …]
/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()
/art/runtime/native/
Ddalvik_system_BaseDexClassLoader.cc39 jobject class_loader) { in BaseDexClassLoader_computeClassLoaderContextsNative() argument
40 CHECK(class_loader != nullptr); in BaseDexClassLoader_computeClassLoaderContextsNative()
42 ClassLoaderContext::EncodeClassPathContextsForClassLoader(class_loader); in BaseDexClassLoader_computeClassLoaderContextsNative()
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()
/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/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()

1234