equal
deleted
inserted
replaced
40 #include "runtime/handles.inline.hpp" |
40 #include "runtime/handles.inline.hpp" |
41 #include "runtime/javaCalls.hpp" |
41 #include "runtime/javaCalls.hpp" |
42 #include "runtime/sharedRuntime.hpp" |
42 #include "runtime/sharedRuntime.hpp" |
43 #include "runtime/signature.hpp" |
43 #include "runtime/signature.hpp" |
44 #include "utilities/macros.hpp" |
44 #include "utilities/macros.hpp" |
45 #if INCLUDE_TRACE |
45 #if INCLUDE_JFR |
46 #include "trace/traceMacros.hpp" |
46 #include "jfr/jfr.hpp" |
47 #endif |
47 #endif |
48 |
48 |
49 static void mangle_name_on(outputStream* st, Symbol* name, int begin, int end) { |
49 static void mangle_name_on(outputStream* st, Symbol* name, int begin, int end) { |
50 char* bytes = (char*)name->bytes() + begin; |
50 char* bytes = (char*)name->bytes() + begin; |
51 char* end_bytes = (char*)name->bytes() + end; |
51 char* end_bytes = (char*)name->bytes() + end; |
129 { CC"Java_sun_hotspot_WhiteBox_registerNatives", NULL, FN_PTR(JVM_RegisterWhiteBoxMethods) }, |
129 { CC"Java_sun_hotspot_WhiteBox_registerNatives", NULL, FN_PTR(JVM_RegisterWhiteBoxMethods) }, |
130 #if INCLUDE_JVMCI |
130 #if INCLUDE_JVMCI |
131 { CC"Java_jdk_vm_ci_runtime_JVMCI_initializeRuntime", NULL, FN_PTR(JVM_GetJVMCIRuntime) }, |
131 { CC"Java_jdk_vm_ci_runtime_JVMCI_initializeRuntime", NULL, FN_PTR(JVM_GetJVMCIRuntime) }, |
132 { CC"Java_jdk_vm_ci_hotspot_CompilerToVM_registerNatives", NULL, FN_PTR(JVM_RegisterJVMCINatives) }, |
132 { CC"Java_jdk_vm_ci_hotspot_CompilerToVM_registerNatives", NULL, FN_PTR(JVM_RegisterJVMCINatives) }, |
133 #endif |
133 #endif |
134 #if INCLUDE_TRACE |
134 #if INCLUDE_JFR |
135 { CC"Java_jdk_jfr_internal_JVM_registerNatives", NULL, TRACE_REGISTER_NATIVES }, |
135 { CC"Java_jdk_jfr_internal_JVM_registerNatives", NULL, FN_PTR(jfr_register_natives) }, |
136 #endif |
136 #endif |
137 }; |
137 }; |
138 |
138 |
139 static address lookup_special_native(char* jni_name) { |
139 static address lookup_special_native(char* jni_name) { |
140 int count = sizeof(lookup_special_native_methods) / sizeof(JNINativeMethod); |
140 int count = sizeof(lookup_special_native_methods) / sizeof(JNINativeMethod); |