src/hotspot/share/jfr/jfr.cpp
changeset 52569 1a534c7926cc
parent 51004 162867fa0f8d
child 57360 5d043a159d5c
child 58132 caa25ab47aca
equal deleted inserted replaced
52568:40474b7105f4 52569:1a534c7926cc
    61   if (JfrRecorder::is_created()) {
    61   if (JfrRecorder::is_created()) {
    62     JfrCheckpointManager::write_type_set_for_unloaded_classes();
    62     JfrCheckpointManager::write_type_set_for_unloaded_classes();
    63   }
    63   }
    64 }
    64 }
    65 
    65 
    66 void Jfr::on_thread_exit(JavaThread* thread) {
    66 void Jfr::on_thread_start(Thread* t) {
    67   JfrThreadLocal::on_exit(thread);
    67   JfrThreadLocal::on_start(t);
    68 }
    68 }
    69 
    69 
    70 void Jfr::on_thread_destruct(Thread* thread) {
    70 void Jfr::on_thread_exit(Thread* t) {
    71   if (JfrRecorder::is_created()) {
    71   JfrThreadLocal::on_exit(t);
    72     JfrThreadLocal::on_destruct(thread);
    72 }
       
    73 
       
    74 void Jfr::on_java_thread_dismantle(JavaThread* jt) {
       
    75   if (JfrRecorder::is_recording()) {
       
    76     JfrCheckpointManager::write_thread_checkpoint(jt);
    73   }
    77   }
    74 }
    78 }
    75 
    79 
    76 void Jfr::on_vm_shutdown(bool exception_handler) {
    80 void Jfr::on_vm_shutdown(bool exception_handler) {
    77   if (JfrRecorder::is_recording()) {
    81   if (JfrRecorder::is_recording()) {
    88 }
    92 }
    89 
    93 
    90 bool Jfr::on_start_flight_recording_option(const JavaVMOption** option, char* delimiter) {
    94 bool Jfr::on_start_flight_recording_option(const JavaVMOption** option, char* delimiter) {
    91   return JfrOptionSet::parse_start_flight_recording_option(option, delimiter);
    95   return JfrOptionSet::parse_start_flight_recording_option(option, delimiter);
    92 }
    96 }
    93 
       
    94 Thread* Jfr::sampler_thread() {
       
    95   return JfrThreadSampling::sampler_thread();
       
    96 }