src/share/vm/prims/jni.cpp

Print this page
rev 6623 : 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan


  63 #include "runtime/compilationPolicy.hpp"
  64 #include "runtime/fieldDescriptor.hpp"
  65 #include "runtime/fprofiler.hpp"
  66 #include "runtime/handles.inline.hpp"
  67 #include "runtime/interfaceSupport.hpp"
  68 #include "runtime/java.hpp"
  69 #include "runtime/javaCalls.hpp"
  70 #include "runtime/jfieldIDWorkaround.hpp"
  71 #include "runtime/orderAccess.inline.hpp"
  72 #include "runtime/reflection.hpp"
  73 #include "runtime/sharedRuntime.hpp"
  74 #include "runtime/signature.hpp"
  75 #include "runtime/thread.inline.hpp"
  76 #include "runtime/vm_operations.hpp"
  77 #include "services/runtimeService.hpp"
  78 #include "trace/tracing.hpp"
  79 #include "utilities/defaultStream.hpp"
  80 #include "utilities/dtrace.hpp"
  81 #include "utilities/events.hpp"
  82 #include "utilities/histogram.hpp"
  83 #ifdef TARGET_OS_FAMILY_linux
  84 # include "os_linux.inline.hpp"
  85 #endif
  86 #ifdef TARGET_OS_FAMILY_solaris
  87 # include "os_solaris.inline.hpp"
  88 #endif
  89 #ifdef TARGET_OS_FAMILY_windows
  90 # include "os_windows.inline.hpp"
  91 #endif
  92 #ifdef TARGET_OS_FAMILY_bsd
  93 # include "os_bsd.inline.hpp"
  94 #endif
  95 
  96 static jint CurrentVersion = JNI_VERSION_1_8;
  97 
  98 
  99 // The DT_RETURN_MARK macros create a scoped object to fire the dtrace
 100 // '-return' probe regardless of the return path is taken out of the function.
 101 // Methods that have multiple return paths use this to avoid having to
 102 // instrument each return path.  Methods that use CHECK or THROW must use this
 103 // since those macros can cause an immedate uninstrumented return.
 104 //
 105 // In order to get the return value, a reference to the variable containing
 106 // the return value must be passed to the contructor of the object, and
 107 // the return value must be set before return (since the mark object has
 108 // a reference to it).
 109 //
 110 // Example:
 111 // DT_RETURN_MARK_DECL(SomeFunc, int);
 112 // JNI_ENTRY(int, SomeFunc, ...)
 113 //   int return_value = 0;
 114 //   DT_RETURN_MARK(SomeFunc, int, (const int&)return_value);




  63 #include "runtime/compilationPolicy.hpp"
  64 #include "runtime/fieldDescriptor.hpp"
  65 #include "runtime/fprofiler.hpp"
  66 #include "runtime/handles.inline.hpp"
  67 #include "runtime/interfaceSupport.hpp"
  68 #include "runtime/java.hpp"
  69 #include "runtime/javaCalls.hpp"
  70 #include "runtime/jfieldIDWorkaround.hpp"
  71 #include "runtime/orderAccess.inline.hpp"
  72 #include "runtime/reflection.hpp"
  73 #include "runtime/sharedRuntime.hpp"
  74 #include "runtime/signature.hpp"
  75 #include "runtime/thread.inline.hpp"
  76 #include "runtime/vm_operations.hpp"
  77 #include "services/runtimeService.hpp"
  78 #include "trace/tracing.hpp"
  79 #include "utilities/defaultStream.hpp"
  80 #include "utilities/dtrace.hpp"
  81 #include "utilities/events.hpp"
  82 #include "utilities/histogram.hpp"












  83 
  84 static jint CurrentVersion = JNI_VERSION_1_8;
  85 
  86 
  87 // The DT_RETURN_MARK macros create a scoped object to fire the dtrace
  88 // '-return' probe regardless of the return path is taken out of the function.
  89 // Methods that have multiple return paths use this to avoid having to
  90 // instrument each return path.  Methods that use CHECK or THROW must use this
  91 // since those macros can cause an immedate uninstrumented return.
  92 //
  93 // In order to get the return value, a reference to the variable containing
  94 // the return value must be passed to the contructor of the object, and
  95 // the return value must be set before return (since the mark object has
  96 // a reference to it).
  97 //
  98 // Example:
  99 // DT_RETURN_MARK_DECL(SomeFunc, int);
 100 // JNI_ENTRY(int, SomeFunc, ...)
 101 //   int return_value = 0;
 102 //   DT_RETURN_MARK(SomeFunc, int, (const int&)return_value);