equal
deleted
inserted
replaced
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "jfr/jfr.hpp" |
26 #include "jfr/jfr.hpp" |
27 #include "jfr/leakprofiler/leakProfiler.hpp" |
27 #include "jfr/leakprofiler/leakProfiler.hpp" |
28 #include "jfr/periodic/sampling/jfrThreadSampler.hpp" |
28 #include "jfr/periodic/sampling/jfrThreadSampler.hpp" |
29 #include "jfr/recorder/service/jfrOptionSet.hpp" |
|
30 #include "jfr/recorder/jfrRecorder.hpp" |
29 #include "jfr/recorder/jfrRecorder.hpp" |
31 #include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp" |
30 #include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp" |
32 #include "jfr/recorder/repository/jfrEmergencyDump.hpp" |
31 #include "jfr/recorder/repository/jfrEmergencyDump.hpp" |
|
32 #include "jfr/recorder/service/jfrOptionSet.hpp" |
33 #include "jfr/support/jfrThreadLocal.hpp" |
33 #include "jfr/support/jfrThreadLocal.hpp" |
34 #include "runtime/java.hpp" |
34 #include "runtime/java.hpp" |
35 |
35 |
36 bool Jfr::is_enabled() { |
36 bool Jfr::is_enabled() { |
37 return JfrRecorder::is_enabled(); |
37 return JfrRecorder::is_enabled(); |
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_exit(JavaThread* thread) { |
67 if (JfrRecorder::is_recording()) { |
67 JfrThreadLocal::on_exit(thread); |
68 JfrThreadLocal::on_exit(thread); |
|
69 } |
|
70 } |
68 } |
71 |
69 |
72 void Jfr::on_thread_destruct(Thread* thread) { |
70 void Jfr::on_thread_destruct(Thread* thread) { |
73 if (JfrRecorder::is_created()) { |
71 if (JfrRecorder::is_created()) { |
74 JfrThreadLocal::on_destruct(thread); |
72 JfrThreadLocal::on_destruct(thread); |