• Home
  • Raw
  • Download

Lines Matching refs:library

234       SharedLibrary* const library = it->second;  in UnloadBootNativeLibraries()  local
235 if (library->GetClassLoader() == nullptr) { in UnloadBootNativeLibraries()
236 unload_libraries.push_back(library); in UnloadBootNativeLibraries()
247 for (const auto& library : libraries_) { in Dump() local
252 os << library.first; in Dump()
265 void Put(const std::string& path, SharedLibrary* library) in Put() argument
267 libraries_.Put(path, library); in Put()
311 SharedLibrary* const library = lib.second; in FindNativeMethodInternal() local
313 if (library->GetClassLoaderAllocator() != declaring_class_loader_allocator) { in FindNativeMethodInternal()
318 const char* arg_shorty = library->NeedsNativeBridge() ? shorty : nullptr; in FindNativeMethodInternal()
319 void* fn = library->FindSymbol(jni_short_name, arg_shorty); in FindNativeMethodInternal()
321 fn = library->FindSymbol(jni_long_name, arg_shorty); in FindNativeMethodInternal()
325 << " in \"" << library->GetPath() << "\"]"; in FindNativeMethodInternal()
341 SharedLibrary* const library = it->second; in UnloadNativeLibraries() local
343 const jweak class_loader = library->GetClassLoader(); in UnloadNativeLibraries()
347 unload_libraries.push_back(library); in UnloadNativeLibraries()
357 for (auto library : unload_libraries) { in UnloadNativeLibraries() local
358 delete library; in UnloadNativeLibraries()
364 for (SharedLibrary* library : libraries) { in UnloadLibraries()
365 void* const sym = library->FindSymbol("JNI_OnUnload", nullptr); in UnloadLibraries()
367 VLOG(jni) << "[No JNI_OnUnload found in \"" << library->GetPath() << "\"]"; in UnloadLibraries()
369 VLOG(jni) << "[JNI_OnUnload found for \"" << library->GetPath() << "\"]: Calling..."; in UnloadLibraries()
897 SharedLibrary* library; in LoadNativeLibrary() local
902 library = libraries_->Get(path); in LoadNativeLibrary()
928 if (library != nullptr) { in LoadNativeLibrary()
930 if (library->GetClassLoaderAllocator() != class_loader_allocator) { in LoadNativeLibrary()
965 std::string old_class_loader = call_to_string(library->GetClassLoader()); in LoadNativeLibrary()
970 library->GetClassLoader(), in LoadNativeLibrary()
979 if (!library->CheckOnLoadResult()) { in LoadNativeLibrary()
1043 library = libraries_->Get(path); in LoadNativeLibrary()
1044 if (library == nullptr) { // We won race to get libraries_lock. in LoadNativeLibrary()
1045 library = new_library.release(); in LoadNativeLibrary()
1046 libraries_->Put(path, library); in LoadNativeLibrary()
1053 return library->CheckOnLoadResult(); in LoadNativeLibrary()
1058 void* sym = library->FindSymbol("JNI_OnLoad", nullptr); in LoadNativeLibrary()
1100 library->SetResult(was_successful); in LoadNativeLibrary()