mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8199712: Flight Recorder
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com> Reviewed-by: coleenp, ihse, erikj, dsamersoff, mseledtsov, egahlin, mgronlun
This commit is contained in:
parent
f575533a17
commit
a060be188d
1062 changed files with 119159 additions and 3164 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "compiler/compileBroker.hpp"
|
||||
#include "compiler/compilerOracle.hpp"
|
||||
#include "interpreter/bytecodeHistogram.hpp"
|
||||
#include "jfr/support/jfrThreadId.hpp"
|
||||
#if INCLUDE_JVMCI
|
||||
#include "jvmci/jvmciCompiler.hpp"
|
||||
#include "jvmci/jvmciRuntime.hpp"
|
||||
|
@ -67,8 +68,6 @@
|
|||
#include "runtime/timer.hpp"
|
||||
#include "runtime/vm_operations.hpp"
|
||||
#include "services/memTracker.hpp"
|
||||
#include "trace/traceMacros.hpp"
|
||||
#include "trace/tracing.hpp"
|
||||
#include "utilities/dtrace.hpp"
|
||||
#include "utilities/globalDefinitions.hpp"
|
||||
#include "utilities/histogram.hpp"
|
||||
|
@ -85,6 +84,9 @@
|
|||
#include "opto/indexSet.hpp"
|
||||
#include "opto/runtime.hpp"
|
||||
#endif
|
||||
#if INCLUDE_JFR
|
||||
#include "jfr/jfr.hpp"
|
||||
#endif
|
||||
|
||||
GrowableArray<Method*>* collected_profiled_methods;
|
||||
|
||||
|
@ -464,11 +466,11 @@ void before_exit(JavaThread* thread) {
|
|||
|
||||
EventThreadEnd event;
|
||||
if (event.should_commit()) {
|
||||
event.set_thread(THREAD_TRACE_ID(thread));
|
||||
event.set_thread(JFR_THREAD_ID(thread));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
TRACE_VM_EXIT();
|
||||
JFR_ONLY(Jfr::on_vm_shutdown();)
|
||||
|
||||
// Stop the WatcherThread. We do this before disenrolling various
|
||||
// PeriodicTasks to reduce the likelihood of races.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue