< prev index next >

src/hotspot/share/prims/jvmtiImpl.cpp

Print this page
rev 52821 : [mq]: 8214850-rename-vm_operations


  33 #include "memory/resourceArea.hpp"
  34 #include "oops/instanceKlass.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "prims/jvmtiAgentThread.hpp"
  37 #include "prims/jvmtiEventController.inline.hpp"
  38 #include "prims/jvmtiImpl.hpp"
  39 #include "prims/jvmtiRedefineClasses.hpp"
  40 #include "runtime/atomic.hpp"
  41 #include "runtime/deoptimization.hpp"
  42 #include "runtime/frame.inline.hpp"
  43 #include "runtime/handles.inline.hpp"
  44 #include "runtime/interfaceSupport.inline.hpp"
  45 #include "runtime/javaCalls.hpp"
  46 #include "runtime/os.hpp"
  47 #include "runtime/serviceThread.hpp"
  48 #include "runtime/signature.hpp"
  49 #include "runtime/thread.inline.hpp"
  50 #include "runtime/threadSMR.hpp"
  51 #include "runtime/vframe.hpp"
  52 #include "runtime/vframe_hp.hpp"
  53 #include "runtime/vm_operations.hpp"
  54 #include "utilities/exceptions.hpp"
  55 
  56 //
  57 // class JvmtiAgentThread
  58 //
  59 // JavaThread used to wrap a thread started by an agent
  60 // using the JVMTI method RunAgentThread.
  61 //
  62 
  63 JvmtiAgentThread::JvmtiAgentThread(JvmtiEnv* env, jvmtiStartFunction start_fn, const void *start_arg)
  64     : JavaThread(start_function_wrapper) {
  65     _env = env;
  66     _start_fn = start_fn;
  67     _start_arg = start_arg;
  68 }
  69 
  70 void
  71 JvmtiAgentThread::start_function_wrapper(JavaThread *thread, TRAPS) {
  72     // It is expected that any Agent threads will be created as
  73     // Java Threads.  If this is the case, notification of the creation




  33 #include "memory/resourceArea.hpp"
  34 #include "oops/instanceKlass.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "prims/jvmtiAgentThread.hpp"
  37 #include "prims/jvmtiEventController.inline.hpp"
  38 #include "prims/jvmtiImpl.hpp"
  39 #include "prims/jvmtiRedefineClasses.hpp"
  40 #include "runtime/atomic.hpp"
  41 #include "runtime/deoptimization.hpp"
  42 #include "runtime/frame.inline.hpp"
  43 #include "runtime/handles.inline.hpp"
  44 #include "runtime/interfaceSupport.inline.hpp"
  45 #include "runtime/javaCalls.hpp"
  46 #include "runtime/os.hpp"
  47 #include "runtime/serviceThread.hpp"
  48 #include "runtime/signature.hpp"
  49 #include "runtime/thread.inline.hpp"
  50 #include "runtime/threadSMR.hpp"
  51 #include "runtime/vframe.hpp"
  52 #include "runtime/vframe_hp.hpp"
  53 #include "runtime/vmOperations.hpp"
  54 #include "utilities/exceptions.hpp"
  55 
  56 //
  57 // class JvmtiAgentThread
  58 //
  59 // JavaThread used to wrap a thread started by an agent
  60 // using the JVMTI method RunAgentThread.
  61 //
  62 
  63 JvmtiAgentThread::JvmtiAgentThread(JvmtiEnv* env, jvmtiStartFunction start_fn, const void *start_arg)
  64     : JavaThread(start_function_wrapper) {
  65     _env = env;
  66     _start_fn = start_fn;
  67     _start_arg = start_arg;
  68 }
  69 
  70 void
  71 JvmtiAgentThread::start_function_wrapper(JavaThread *thread, TRAPS) {
  72     // It is expected that any Agent threads will be created as
  73     // Java Threads.  If this is the case, notification of the creation


< prev index next >