< prev index next >

src/hotspot/share/jfr/jfr.cpp

Print this page
@@ -22,10 +22,11 @@
   *
   */
  
  #include "precompiled.hpp"
  #include "jfr/jfr.hpp"
+ #include "jfr/jni/jfrJavaSupport.hpp"
  #include "jfr/leakprofiler/leakProfiler.hpp"
  #include "jfr/recorder/checkpoint/types/traceid/jfrTraceIdLoadBarrier.inline.hpp"
  #include "jfr/recorder/jfrRecorder.hpp"
  #include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp"
  #include "jfr/recorder/repository/jfrEmergencyDump.hpp"

@@ -74,14 +75,22 @@
  
  void Jfr::on_thread_start(Thread* t) {
    JfrThreadLocal::on_start(t);
  }
  
+ void Jfr::on_thread_start(jobject carrier_thread, jobject vthread) {
+   JfrThreadLocal::on_vthread_start(JfrJavaSupport::get_native(carrier_thread), vthread);
+ }
+ 
  void Jfr::on_thread_exit(Thread* t) {
    JfrThreadLocal::on_exit(t);
  }
  
+ void Jfr::on_thread_exit(jobject carrier_thread, jobject vthread) {
+   JfrThreadLocal::on_vthread_exit(JfrJavaSupport::get_native(carrier_thread), vthread);
+ }
+ 
  void Jfr::exclude_thread(Thread* t) {
    JfrThreadLocal::exclude(t);
  }
  
  void Jfr::include_thread(Thread* t) {
< prev index next >