Home
last modified time | relevance | path

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

1234

/art/dex2oat/driver/
Dcompiler_driver_test.cc46 void CompileAllAndMakeExecutable(jobject class_loader) REQUIRES(!Locks::mutator_lock_) { in CompileAllAndMakeExecutable() argument
48 dex_files_ = GetDexFiles(class_loader); in CompileAllAndMakeExecutable()
49 CompileAll(class_loader, dex_files_, &timings); in CompileAllAndMakeExecutable()
51 MakeAllExecutable(class_loader); in CompileAllAndMakeExecutable()
54 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method, in EnsureCompiled() argument
57 CompileAllAndMakeExecutable(class_loader); in EnsureCompiled()
72 void MakeAllExecutable(jobject class_loader) { in MakeAllExecutable() argument
73 const std::vector<const DexFile*> class_path = GetDexFiles(class_loader); in MakeAllExecutable()
77 MakeDexFileExecutable(class_loader, *dex_file); in MakeAllExecutable()
99 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.h105 void PreCompile(jobject class_loader,
110 void CompileAll(jobject class_loader,
147 Handle<mirror::ClassLoader> class_loader,
153 Handle<mirror::ClassLoader> class_loader,
162 Handle<mirror::ClassLoader> class_loader,
236 void Resolve(jobject class_loader,
240 void ResolveDexFile(jobject class_loader,
250 bool FastVerify(jobject class_loader,
254 void Verify(jobject class_loader,
258 void VerifyDexFile(jobject class_loader,
[all …]
Dcompiler_driver.cc337 void CompilerDriver::CompileAll(jobject class_loader, in CompileAll() argument
348 Compile(class_loader, dex_files, timings); in CompileAll()
377 Handle<mirror::ClassLoader> class_loader, in CompileMethodHarness() argument
393 class_loader, in CompileMethodHarness()
458 Handle<mirror::ClassLoader> class_loader, in CompileMethodQuick() argument
470 Handle<mirror::ClassLoader> class_loader, in CompileMethodQuick()
517 class_loader, in CompileMethodQuick()
553 class_loader, in CompileMethodQuick()
559 void CompilerDriver::Resolve(jobject class_loader, in Resolve() argument
572 ResolveDexFile(class_loader, in Resolve()
[all …]
/art/runtime/
Dclass_loader_utils.h34 inline bool IsInstanceOfBaseDexClassLoader(Handle<mirror::ClassLoader> class_loader) in IsInstanceOfBaseDexClassLoader() argument
36 return class_loader->InstanceOf(WellKnownClasses::dalvik_system_BaseDexClassLoader.Get()); in IsInstanceOfBaseDexClassLoader()
41 inline bool IsPathOrDexClassLoader(Handle<mirror::ClassLoader> class_loader) in IsPathOrDexClassLoader() argument
43 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsPathOrDexClassLoader()
49 inline bool IsInMemoryDexClassLoader(Handle<mirror::ClassLoader> class_loader) in IsInMemoryDexClassLoader() argument
51 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsInMemoryDexClassLoader()
55 inline bool IsDelegateLastClassLoader(Handle<mirror::ClassLoader> class_loader) in IsDelegateLastClassLoader() argument
57 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsDelegateLastClassLoader()
69 Handle<mirror::ClassLoader> class_loader, in VisitClassLoaderDexElements() argument
74 WellKnownClasses::dalvik_system_BaseDexClassLoader_pathList->GetObject(class_loader.Get()); in VisitClassLoaderDexElements()
[all …]
Dclass_linker-inl.h56 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(element_class->GetClassLoader())); in FindArrayClass()
57 ObjPtr<mirror::Class> array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
153 Handle<mirror::ClassLoader> class_loader) { in ResolveType() argument
155 DCHECK(dex_cache->GetClassLoader() == class_loader.Get()); in ResolveType()
159 resolved = DoResolveType(type_idx, dex_cache, class_loader); in ResolveType()
198 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedType() argument
199 DCHECK(dex_cache->GetClassLoader() == class_loader); in LookupResolvedType()
202 type = DoLookupResolvedType(type_idx, dex_cache, class_loader); in LookupResolvedType()
260 ObjPtr<mirror::ClassLoader> class_loader) { in CheckInvokeClassMismatch() argument
261 DCHECK(dex_cache->GetClassLoader().Ptr() == class_loader.Ptr()); in CheckInvokeClassMismatch()
[all …]
Dclass_table_test.cc80 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F() local
84 hs.NewHandle(class_linker_->FindClass(soa.Self(), descriptor_x, class_loader))); in TEST_F()
86 hs.NewHandle(class_linker_->FindClass(soa.Self(), descriptor_y, class_loader))); in TEST_F()
90 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
91 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
98 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
99 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 1u); in TEST_F()
103 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
104 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
112 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
[all …]
Dtransaction_test.cc41 Handle<mirror::ClassLoader> class_loader( in testTransactionAbort() local
43 ASSERT_TRUE(class_loader != nullptr); in testTransactionAbort()
63 class_loader)); in testTransactionAbort()
69 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
170 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
172 ASSERT_TRUE(class_loader != nullptr); in TEST_F()
175 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F()
266 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
268 ASSERT_TRUE(class_loader != nullptr); in TEST_F()
271 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LInstanceFieldsTest;", class_loader))); in TEST_F()
[all …]
Dclass_linker_test.cc179 ObjPtr<mirror::ClassLoader> class_loader) in AssertArrayClass() argument
183 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass()
406 void AssertDexFileClass(ObjPtr<mirror::ClassLoader> class_loader, const std::string& descriptor) in AssertDexFileClass() argument
416 EXPECT_OBJ_PTR_EQ(class_loader, klass->GetClassLoader()); in AssertDexFileClass()
426 void AssertDexFile(const DexFile& dex, ObjPtr<mirror::ClassLoader> class_loader) in AssertDexFile() argument
432 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
438 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
909 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
912 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
918 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
[all …]
Dclass_linker.h129 virtual void Visit(ObjPtr<mirror::ClassLoader> class_loader)
192 Handle<mirror::ClassLoader> class_loader,
208 Handle<mirror::ClassLoader> class_loader)
234 Handle<mirror::ClassLoader> class_loader,
244 ObjPtr<mirror::ClassLoader> class_loader)
302 Handle<mirror::ClassLoader> class_loader)
322 ObjPtr<mirror::ClassLoader> class_loader)
327 ObjPtr<mirror::ClassLoader> class_loader)
340 ObjPtr<mirror::ClassLoader> class_loader)
346 ObjPtr<mirror::ClassLoader> class_loader,
[all …]
Doat_file_manager.h98 jobject class_loader,
115 jobject class_loader,
128 jobject class_loader);
151 jobject class_loader,
/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.cpp102 jobject GetParentClassLoader(JNIEnv* env, jobject class_loader) { in GetParentClassLoader() argument
107 return env->CallObjectMethod(class_loader, get_parent); in GetParentClassLoader()
182 jobject class_loader, bool is_shared, in Create() argument
234 LOG_ALWAYS_FATAL_IF(FindNamespaceByClassLoader(env, class_loader) != nullptr, in Create()
312 NativeLoaderNamespace* parent_ns = FindParentNamespaceByClassLoader(env, class_loader); in Create()
427 std::make_pair(env->NewWeakGlobalRef(class_loader), *app_ns)); in Create()
435 jobject class_loader) { in FindNamespaceByClassLoader() argument
438 return env->IsSameObject(value.first, class_loader); in FindNamespaceByClassLoader()
448 jobject class_loader) { in FindParentNamespaceByClassLoader() argument
449 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()
176 jobject class_loader; in TEST_F() local
179 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F()
181 ASSERT_NE(class_loader, nullptr); in TEST_F()
184 std::vector<ArtMethod*> main_methods = GetVirtualMethods(class_loader, "LMain;"); in TEST_F()
204 std::vector<ArtMethod*> second_methods = GetVirtualMethods(class_loader, "LSecond;"); in TEST_F()
233 jobject class_loader; in TEST_F() local
236 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F()
238 ASSERT_NE(class_loader, nullptr); in TEST_F()
[all …]
/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/mirror/
Ddex_cache_test.cc80 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local
83 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F()
86 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F()
107 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local
111 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LMethodTypes;", class_loader))); in TEST_F()
137 class_loader)); in TEST_F()
142 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/native/
Ddalvik_system_BaseDexClassLoader.cc47 jobject class_loader) { in BaseDexClassLoader_computeClassLoaderContextsNative() argument
48 CHECK(class_loader != nullptr); in BaseDexClassLoader_computeClassLoaderContextsNative()
50 ClassLoaderContext::EncodeClassPathContextsForClassLoader(class_loader); in BaseDexClassLoader_computeClassLoaderContextsNative()
Ddalvik_system_VMStack.cc113 class_loader(nullptr) {} in VMStack_getClosestUserClassLoader()
116 DCHECK(class_loader == nullptr); in VMStack_getClosestUserClassLoader()
122 class_loader = cl; in VMStack_getClosestUserClassLoader()
129 ObjPtr<mirror::Object> class_loader; in VMStack_getClosestUserClassLoader() member
134 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
/art/tools/art_verifier/
Dart_verifier.cc77 jobject class_loader = class_linker->CreatePathClassLoader(self, *out); in Install() local
82 *dex_file, self->DecodeJObject(class_loader)->AsClassLoader()); in Install()
86 return class_loader; in Install()
212 jobject class_loader = Install(runtime, unique_dex_files, &dex_files); in ExecuteWithRuntime() local
213 CHECK(class_loader != nullptr); in ExecuteWithRuntime()
217 soa.Decode<mirror::ClassLoader>(class_loader)); in ExecuteWithRuntime()

1234