nativeLookup.cpp revision 3158
922N/A * or visit www.oracle.com if you need additional information or have any
922N/A#include "precompiled.hpp"
922N/A#include "classfile/javaClasses.hpp"
922N/A#include "classfile/systemDictionary.hpp"
922N/A#include "classfile/vmSymbols.hpp"
922N/A#include "memory/oopFactory.hpp"
922N/A#include "memory/resourceArea.hpp"
922N/A#include "memory/universe.inline.hpp"
922N/A#include "oops/instanceKlass.hpp"
922N/A#include "oops/methodOop.hpp"
922N/A#include "oops/oop.inline.hpp"
922N/A#include "oops/symbol.hpp"
922N/A#include "prims/jvm_misc.hpp"
922N/A#include "prims/nativeLookup.hpp"
922N/A#include "runtime/arguments.hpp"
922N/A#include "runtime/handles.inline.hpp"
922N/A#include "runtime/javaCalls.hpp"
922N/A#include "runtime/sharedRuntime.hpp"
922N/A#include "runtime/signature.hpp"
922N/A#ifdef TARGET_OS_FAMILY_linux
922N/A# include "os_linux.inline.hpp"
922N/A# include "os_solaris.inline.hpp"
922N/A# include "os_windows.inline.hpp"
922N/A#ifdef TARGET_OS_FAMILY_bsd
922N/A# include "os_bsd.inline.hpp"
922N/A { CC"Java_java_io_ObjectOutputStream_getPrimitiveFieldValues", NULL, FN_PTR(JVM_GetPrimitiveFieldValues) }, // intercept ObjectOutputStream getPrimitiveFieldValues for faster serialization
{ CC"Java_java_io_ObjectInputStream_setPrimitiveFieldValues", NULL, FN_PTR(JVM_SetPrimitiveFieldValues) }, // intercept ObjectInputStream setPrimitiveFieldValues for faster serialization
{ CC"Java_java_lang_invoke_MethodHandleNatives_registerNatives", NULL, FN_PTR(JVM_RegisterMethodHandleMethods) },
int i = !JDK_Version::is_gte_jdk14x_version() ? 0 : 2; // see comment in lookup_special_native_methods
for (; i < count; i++) {
return NULL;
address NativeLookup::lookup_style(methodHandle method, char* pure_name, const char* long_name, int args_size, bool os_style, bool& in_base_library, TRAPS) {
in_base_library = true;
return entry;
return entry;
return entry;
address NativeLookup::lookup_critical_style(methodHandle method, char* pure_name, const char* long_name, int args_size, bool os_style) {
return NULL;
int offset;
return NULL;
in_base_library = false;
return NULL;
return NULL;
int prefix_count;
return NULL;
if (PrintJNIResolving) {
address NativeLookup::base_library_lookup(const char* class_name, const char* method_name, const char* signature) {
return result;