Lines Matching defs:library

466    * Check the result of an earlier call to JNI_OnLoad on this library.
481 LOG(INFO) << *self << " recursive attempt to load library " << "\"" << path_ << "\"";
520 // Path to library "/system/lib/libjni.so".
526 // The ClassLoader this library is associated with.
551 for (const auto& library : libraries_) {
556 os << library.first;
569 void Put(const std::string& path, SharedLibrary* library) {
570 libraries_.Put(path, library);
580 SharedLibrary* library = lib.second;
581 if (library->GetClassLoader() != declaring_class_loader) {
586 void* fn = library->FindSymbol(jni_short_name);
588 fn = library->FindSymbol(jni_long_name);
592 << " in \"" << library->GetPath() << "\"]";
3121 // See if we've already loaded this library. If we have, and the class loader
3125 SharedLibrary* library;
3130 library = libraries->Get(path);
3132 if (library != NULL) {
3133 if (library->GetClassLoader() != class_loader) {
3134 // The library will be associated with class_loader. The JNI
3135 // spec says we can't load the same library into more than one
3137 StringAppendF(&detail, "Shared library \"%s\" already opened by "
3139 path.c_str(), library->GetClassLoader(), class_loader);
3143 VLOG(jni) << "[Shared library \"" << path << "\" already loaded in "
3145 if (!library->CheckOnLoadResult()) {
3153 // Open the shared library. Because we're using a full path, the system
3155 // resolve this library's dependencies though.)
3157 // Failures here are expected when java.library.path has several entries
3164 // This can execute slowly for a large library on a busy system, so we
3183 library = libraries->Get(path);
3184 if (library == NULL) { // We won race to get libraries_lock
3185 library = new SharedLibrary(path, handle, class_loader);
3186 libraries->Put(path, library);
3191 LOG(INFO) << "WOW: we lost a race to add shared library: "
3193 return library->CheckOnLoadResult();
3196 VLOG(jni) << "[Added shared library \"" << path << "\" for ClassLoader " << class_loader << "]";
3240 library->SetResult(was_successful);