< prev index next >

src/hotspot/share/runtime/interfaceSupport.inline.hpp

Print this page

392 #define JVM_ENTRY_NO_ENV(result_type, header)                        \
393 extern "C" {                                                         \
394   result_type JNICALL header {                                       \
395     JavaThread* thread = JavaThread::current();                      \
396     MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, thread));        \
397     ThreadInVMfromNative __tiv(thread);                              \
398     debug_only(VMNativeEntryWrapper __vew;)                          \
399     VM_ENTRY_BASE(result_type, header, thread)
400 
401 
402 #define JVM_LEAF(result_type, header)                                \
403 extern "C" {                                                         \
404   result_type JNICALL header {                                       \
405     VM_Exit::block_if_vm_exited();                                   \
406     VM_LEAF_BASE(result_type, header)
407 
408 
409 #define JVM_ENTRY_FROM_LEAF(env, result_type, header)                \
410   { {                                                                \
411     JavaThread* thread=JavaThread::thread_from_jni_environment(env); \

412     ThreadInVMfromNative __tiv(thread);                              \
413     debug_only(VMNativeEntryWrapper __vew;)                          \
414     VM_ENTRY_BASE_FROM_LEAF(result_type, header, thread)
415 
416 
417 #define JVM_END } }
418 
419 #endif // SHARE_RUNTIME_INTERFACESUPPORT_INLINE_HPP

392 #define JVM_ENTRY_NO_ENV(result_type, header)                        \
393 extern "C" {                                                         \
394   result_type JNICALL header {                                       \
395     JavaThread* thread = JavaThread::current();                      \
396     MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, thread));        \
397     ThreadInVMfromNative __tiv(thread);                              \
398     debug_only(VMNativeEntryWrapper __vew;)                          \
399     VM_ENTRY_BASE(result_type, header, thread)
400 
401 
402 #define JVM_LEAF(result_type, header)                                \
403 extern "C" {                                                         \
404   result_type JNICALL header {                                       \
405     VM_Exit::block_if_vm_exited();                                   \
406     VM_LEAF_BASE(result_type, header)
407 
408 
409 #define JVM_ENTRY_FROM_LEAF(env, result_type, header)                \
410   { {                                                                \
411     JavaThread* thread=JavaThread::thread_from_jni_environment(env); \
412     MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, thread));        \
413     ThreadInVMfromNative __tiv(thread);                              \
414     debug_only(VMNativeEntryWrapper __vew;)                          \
415     VM_ENTRY_BASE_FROM_LEAF(result_type, header, thread)
416 
417 
418 #define JVM_END } }
419 
420 #endif // SHARE_RUNTIME_INTERFACESUPPORT_INLINE_HPP
< prev index next >