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