diff 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
line wrap: on
line diff
--- a/src/share/vm/prims/nativeLookup.cpp	Thu Jul 03 14:31:34 2014 +0200
+++ b/src/share/vm/prims/nativeLookup.cpp	Thu Jul 03 16:30:28 2014 +0200
@@ -182,7 +182,7 @@
   // gets found the first time around - otherwise an infinite loop can occure. This is
   // another VM/library dependency
   Handle loader(THREAD, method->method_holder()->class_loader());
-  if (loader.is_null()) {
+  if (loader.is_null() GRAAL_ONLY(|| loader() == SystemDictionary::graal_loader())) {
     entry = lookup_special_native(jni_name);
     if (entry == NULL) {
        entry = (address) os::dll_lookup(os::native_java_library(), jni_name);