src/hotspot/share/jfr/periodic/jfrPeriodic.cpp
changeset 58003 a645b2f7bece
parent 54956 43340a79840d
child 58154 060d9d139109
child 58844 5a0e0d0b3a27
equal deleted inserted replaced
58002:01d31583f25c 58003:a645b2f7bece
    30 #include "classfile/stringTable.hpp"
    30 #include "classfile/stringTable.hpp"
    31 #include "classfile/symbolTable.hpp"
    31 #include "classfile/symbolTable.hpp"
    32 #include "classfile/systemDictionary.hpp"
    32 #include "classfile/systemDictionary.hpp"
    33 #include "code/codeCache.hpp"
    33 #include "code/codeCache.hpp"
    34 #include "compiler/compileBroker.hpp"
    34 #include "compiler/compileBroker.hpp"
    35 #include "gc/g1/g1HeapRegionEventSender.hpp"
       
    36 #include "gc/shared/gcConfiguration.hpp"
    35 #include "gc/shared/gcConfiguration.hpp"
    37 #include "gc/shared/gcTrace.hpp"
    36 #include "gc/shared/gcTrace.hpp"
    38 #include "gc/shared/gcVMOperations.hpp"
    37 #include "gc/shared/gcVMOperations.hpp"
    39 #include "gc/shared/objectCountEventSender.hpp"
    38 #include "gc/shared/objectCountEventSender.hpp"
    40 #include "jfr/jfrEvents.hpp"
    39 #include "jfr/jfrEvents.hpp"
    63 #include "services/classLoadingService.hpp"
    62 #include "services/classLoadingService.hpp"
    64 #include "services/management.hpp"
    63 #include "services/management.hpp"
    65 #include "services/threadService.hpp"
    64 #include "services/threadService.hpp"
    66 #include "utilities/exceptions.hpp"
    65 #include "utilities/exceptions.hpp"
    67 #include "utilities/globalDefinitions.hpp"
    66 #include "utilities/globalDefinitions.hpp"
       
    67 #if INCLUDE_G1GC
       
    68 #include "gc/g1/g1HeapRegionEventSender.hpp"
       
    69 #endif
    68 #if INCLUDE_SHENANDOAHGC
    70 #if INCLUDE_SHENANDOAHGC
    69 #include "gc/shenandoah/shenandoahJfrSupport.hpp"
    71 #include "gc/shenandoah/shenandoahJfrSupport.hpp"
    70 #endif
    72 #endif
    71 /**
    73 /**
    72  *  JfrPeriodic class
    74  *  JfrPeriodic class
   321 TRACE_REQUEST_FUNC(ObjectCount) {
   323 TRACE_REQUEST_FUNC(ObjectCount) {
   322   VM_GC_SendObjectCountEvent op;
   324   VM_GC_SendObjectCountEvent op;
   323   VMThread::execute(&op);
   325   VMThread::execute(&op);
   324 }
   326 }
   325 
   327 
   326 class VM_G1SendHeapRegionInfoEvents : public VM_Operation {
       
   327   virtual void doit() {
       
   328     G1HeapRegionEventSender::send_events();
       
   329   }
       
   330   virtual VMOp_Type type() const { return VMOp_HeapIterateOperation; }
       
   331 };
       
   332 
       
   333 TRACE_REQUEST_FUNC(G1HeapRegionInformation) {
   328 TRACE_REQUEST_FUNC(G1HeapRegionInformation) {
   334   if (UseG1GC) {
   329   G1GC_ONLY(G1HeapRegionEventSender::send_events());
   335     VM_G1SendHeapRegionInfoEvents op;
       
   336     VMThread::execute(&op);
       
   337   }
       
   338 }
   330 }
   339 
   331 
   340 // Java Mission Control (JMC) uses (Java) Long.MIN_VALUE to describe that a
   332 // Java Mission Control (JMC) uses (Java) Long.MIN_VALUE to describe that a
   341 // long value is undefined.
   333 // long value is undefined.
   342 static jlong jmc_undefined_long = min_jlong;
   334 static jlong jmc_undefined_long = min_jlong;