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 |
45 #if INCLUDE_TRACE |
|
46 #include "trace/traceMacros.hpp" |
|
47 #endif |
46 |
48 |
47 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) { |
48 char* bytes = (char*)name->bytes() + begin; |
50 char* bytes = (char*)name->bytes() + begin; |
49 char* end_bytes = (char*)name->bytes() + end; |
51 char* end_bytes = (char*)name->bytes() + end; |
50 while (bytes < end_bytes) { |
52 while (bytes < end_bytes) { |
127 { CC"Java_sun_hotspot_WhiteBox_registerNatives", NULL, FN_PTR(JVM_RegisterWhiteBoxMethods) }, |
129 { CC"Java_sun_hotspot_WhiteBox_registerNatives", NULL, FN_PTR(JVM_RegisterWhiteBoxMethods) }, |
128 #if INCLUDE_JVMCI |
130 #if INCLUDE_JVMCI |
129 { 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) }, |
130 { 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) }, |
131 #endif |
133 #endif |
|
134 #if INCLUDE_TRACE |
|
135 { CC"Java_jdk_jfr_internal_JVM_registerNatives", NULL, TRACE_REGISTER_NATIVES }, |
|
136 #endif |
132 }; |
137 }; |
133 |
138 |
134 static address lookup_special_native(char* jni_name) { |
139 static address lookup_special_native(char* jni_name) { |
135 int count = sizeof(lookup_special_native_methods) / sizeof(JNINativeMethod); |
140 int count = sizeof(lookup_special_native_methods) / sizeof(JNINativeMethod); |
136 for (int i = 0; i < count; i++) { |
141 for (int i = 0; i < count; i++) { |