mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
Added a nop tracing infrastructure, JFR makefile changes and other infrastructure used only by JFR. Reviewed-by: acorn, sspitsyn
This commit is contained in:
parent
849571d5b3
commit
007126d010
29 changed files with 352 additions and 11 deletions
|
@ -41,6 +41,7 @@
|
|||
#include "runtime/stubRoutines.hpp"
|
||||
#include "runtime/threadLocalStorage.hpp"
|
||||
#include "runtime/unhandledOops.hpp"
|
||||
#include "trace/tracing.hpp"
|
||||
#include "utilities/exceptions.hpp"
|
||||
#include "utilities/top.hpp"
|
||||
#ifndef SERIALGC
|
||||
|
@ -246,6 +247,8 @@ class Thread: public ThreadShadow {
|
|||
jlong _allocated_bytes; // Cumulative number of bytes allocated on
|
||||
// the Java heap
|
||||
|
||||
TRACE_BUFFER _trace_buffer; // Thread-local buffer for tracing
|
||||
|
||||
int _vm_operation_started_count; // VM_Operation support
|
||||
int _vm_operation_completed_count; // VM_Operation support
|
||||
|
||||
|
@ -414,6 +417,9 @@ class Thread: public ThreadShadow {
|
|||
return allocated_bytes;
|
||||
}
|
||||
|
||||
TRACE_BUFFER trace_buffer() { return _trace_buffer; }
|
||||
void set_trace_buffer(TRACE_BUFFER buf) { _trace_buffer = buf; }
|
||||
|
||||
// VM operation support
|
||||
int vm_operation_ticket() { return ++_vm_operation_started_count; }
|
||||
int vm_operation_completed_count() { return _vm_operation_completed_count; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue