Lines Matching refs:library

211     for (const auto& library : libraries_) {  in Dump()  local
216 os << library.first; in Dump()
229 void Put(const std::string& path, SharedLibrary* library) in Put() argument
231 libraries_.Put(path, library); in Put()
246 SharedLibrary* const library = lib.second; in FindNativeMethod() local
248 if (library->GetClassLoaderAllocator() != declaring_class_loader_allocator) { in FindNativeMethod()
253 const char* shorty = library->NeedsNativeBridge() in FindNativeMethod()
256 void* fn = library->FindSymbol(jni_short_name, shorty); in FindNativeMethod()
258 fn = library->FindSymbol(jni_long_name, shorty); in FindNativeMethod()
262 << " in \"" << library->GetPath() << "\"]"; in FindNativeMethod()
282 SharedLibrary* const library = it->second; in UnloadNativeLibraries() local
284 const jweak class_loader = library->GetClassLoader(); in UnloadNativeLibraries()
289 unload_libraries.push_back(library); in UnloadNativeLibraries()
298 for (auto library : unload_libraries) { in UnloadNativeLibraries() local
299 void* const sym = library->FindSymbol("JNI_OnUnload", nullptr); in UnloadNativeLibraries()
301 VLOG(jni) << "[No JNI_OnUnload found in \"" << library->GetPath() << "\"]"; in UnloadNativeLibraries()
303 VLOG(jni) << "[JNI_OnUnload found for \"" << library->GetPath() << "\"]: Calling..."; in UnloadNativeLibraries()
307 delete library; in UnloadNativeLibraries()
732 SharedLibrary* library; in LoadNativeLibrary() local
737 library = libraries_->Get(path); in LoadNativeLibrary()
755 if (library != nullptr) { in LoadNativeLibrary()
757 if (library->GetClassLoaderAllocator() != class_loader_allocator) { in LoadNativeLibrary()
763 path.c_str(), library->GetClassLoader(), class_loader); in LoadNativeLibrary()
769 if (!library->CheckOnLoadResult()) { in LoadNativeLibrary()
825 library = libraries_->Get(path); in LoadNativeLibrary()
826 if (library == nullptr) { // We won race to get libraries_lock. in LoadNativeLibrary()
827 library = new_library.release(); in LoadNativeLibrary()
828 libraries_->Put(path, library); in LoadNativeLibrary()
835 return library->CheckOnLoadResult(); in LoadNativeLibrary()
842 library->SetNeedsNativeBridge(); in LoadNativeLibrary()
844 sym = library->FindSymbol("JNI_OnLoad", nullptr); in LoadNativeLibrary()
885 library->SetResult(was_successful); in LoadNativeLibrary()