hotspot/src/share/vm/prims/nativeLookup.cpp
changeset 13975 2f7431485cfa
parent 13728 882756847a04
child 14391 df0a1573d5bd
equal deleted inserted replaced
13951:3fc49366dc15 13975:2f7431485cfa
   326 // Check if there are any JVM TI prefixes which have been applied to the native method name.
   326 // Check if there are any JVM TI prefixes which have been applied to the native method name.
   327 // If any are found, remove them before attemping the look up of the
   327 // If any are found, remove them before attemping the look up of the
   328 // native implementation again.
   328 // native implementation again.
   329 // See SetNativeMethodPrefix in the JVM TI Spec for more details.
   329 // See SetNativeMethodPrefix in the JVM TI Spec for more details.
   330 address NativeLookup::lookup_entry_prefixed(methodHandle method, bool& in_base_library, TRAPS) {
   330 address NativeLookup::lookup_entry_prefixed(methodHandle method, bool& in_base_library, TRAPS) {
       
   331 #if INCLUDE_JVMTI
   331   ResourceMark rm(THREAD);
   332   ResourceMark rm(THREAD);
   332 
   333 
   333   int prefix_count;
   334   int prefix_count;
   334   char** prefixes = JvmtiExport::get_all_native_method_prefixes(&prefix_count);
   335   char** prefixes = JvmtiExport::get_all_native_method_prefixes(&prefix_count);
   335   char* in_name = method->name()->as_C_string();
   336   char* in_name = method->name()->as_C_string();
   356         method->set_is_prefixed_native();
   357         method->set_is_prefixed_native();
   357         return lookup_entry(wrapper_method, in_base_library, THREAD);
   358         return lookup_entry(wrapper_method, in_base_library, THREAD);
   358       }
   359       }
   359     }
   360     }
   360   }
   361   }
       
   362 #endif // INCLUDE_JVMTI
   361   return NULL;
   363   return NULL;
   362 }
   364 }
   363 
   365 
   364 address NativeLookup::lookup_base(methodHandle method, bool& in_base_library, TRAPS) {
   366 address NativeLookup::lookup_base(methodHandle method, bool& in_base_library, TRAPS) {
   365   address entry = NULL;
   367   address entry = NULL;