< prev index next >

src/hotspot/share/runtime/javaCalls.cpp

Print this page




  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "code/nmethod.hpp"
  29 #include "compiler/compileBroker.hpp"
  30 #include "interpreter/interpreter.hpp"
  31 #include "interpreter/linkResolver.hpp"
  32 #include "memory/universe.hpp"
  33 #include "oops/method.inline.hpp"
  34 #include "oops/oop.inline.hpp"
  35 #include "prims/jniCheck.hpp"
  36 #include "runtime/compilationPolicy.hpp"
  37 #include "runtime/handles.inline.hpp"
  38 #include "runtime/interfaceSupport.inline.hpp"
  39 #include "runtime/javaCalls.hpp"
  40 #include "runtime/jniHandles.inline.hpp"
  41 #include "runtime/mutexLocker.hpp"
  42 #include "runtime/os.inline.hpp"

  43 #include "runtime/signature.hpp"
  44 #include "runtime/stubRoutines.hpp"
  45 #include "runtime/thread.inline.hpp"
  46 #if INCLUDE_JVMCI
  47 #include "jvmci/jvmciJavaClasses.hpp"
  48 #include "jvmci/jvmciRuntime.hpp"
  49 #endif
  50 
  51 // -----------------------------------------------------
  52 // Implementation of JavaCallWrapper
  53 
  54 JavaCallWrapper::JavaCallWrapper(const methodHandle& callee_method, Handle receiver, JavaValue* result, TRAPS) {
  55   JavaThread* thread = (JavaThread *)THREAD;
  56   bool clear_pending_exception = true;
  57 
  58   guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code");
  59   assert(!thread->owns_locks(), "must release all locks when leaving VM");
  60   guarantee(thread->can_call_java(), "cannot make java calls from the native compiler");
  61   _result   = result;
  62 




  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "code/nmethod.hpp"
  29 #include "compiler/compileBroker.hpp"
  30 #include "interpreter/interpreter.hpp"
  31 #include "interpreter/linkResolver.hpp"
  32 #include "memory/universe.hpp"
  33 #include "oops/method.inline.hpp"
  34 #include "oops/oop.inline.hpp"
  35 #include "prims/jniCheck.hpp"
  36 #include "runtime/compilationPolicy.hpp"
  37 #include "runtime/handles.inline.hpp"
  38 #include "runtime/interfaceSupport.inline.hpp"
  39 #include "runtime/javaCalls.hpp"
  40 #include "runtime/jniHandles.inline.hpp"
  41 #include "runtime/mutexLocker.hpp"
  42 #include "runtime/os.inline.hpp"
  43 #include "runtime/sharedRuntime.hpp"
  44 #include "runtime/signature.hpp"
  45 #include "runtime/stubRoutines.hpp"
  46 #include "runtime/thread.inline.hpp"
  47 #if INCLUDE_JVMCI
  48 #include "jvmci/jvmciJavaClasses.hpp"
  49 #include "jvmci/jvmciRuntime.hpp"
  50 #endif
  51 
  52 // -----------------------------------------------------
  53 // Implementation of JavaCallWrapper
  54 
  55 JavaCallWrapper::JavaCallWrapper(const methodHandle& callee_method, Handle receiver, JavaValue* result, TRAPS) {
  56   JavaThread* thread = (JavaThread *)THREAD;
  57   bool clear_pending_exception = true;
  58 
  59   guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code");
  60   assert(!thread->owns_locks(), "must release all locks when leaving VM");
  61   guarantee(thread->can_call_java(), "cannot make java calls from the native compiler");
  62   _result   = result;
  63 


< prev index next >