comparison src/share/vm/prims/nativeLookup.cpp @ 16395:ad431bf0de07

added support to load classes from graal.jar with a separate class loader
author Doug Simon <doug.simon@oracle.com>
date Thu, 03 Jul 2014 16:30:28 +0200
parents 66a9286203a2
children 4481cf549cfc
comparison
equal deleted inserted replaced
16394:0dd27c6472d7 16395:ad431bf0de07
180 // the native Java library. This takes care of any bootstrapping problems. 180 // the native Java library. This takes care of any bootstrapping problems.
181 // Note: It is critical for bootstrapping that Java_java_lang_ClassLoader_00024NativeLibrary_find 181 // Note: It is critical for bootstrapping that Java_java_lang_ClassLoader_00024NativeLibrary_find
182 // gets found the first time around - otherwise an infinite loop can occure. This is 182 // gets found the first time around - otherwise an infinite loop can occure. This is
183 // another VM/library dependency 183 // another VM/library dependency
184 Handle loader(THREAD, method->method_holder()->class_loader()); 184 Handle loader(THREAD, method->method_holder()->class_loader());
185 if (loader.is_null()) { 185 if (loader.is_null() GRAAL_ONLY(|| loader() == SystemDictionary::graal_loader())) {
186 entry = lookup_special_native(jni_name); 186 entry = lookup_special_native(jni_name);
187 if (entry == NULL) { 187 if (entry == NULL) {
188 entry = (address) os::dll_lookup(os::native_java_library(), jni_name); 188 entry = (address) os::dll_lookup(os::native_java_library(), jni_name);
189 } 189 }
190 if (entry != NULL) { 190 if (entry != NULL) {