< prev index next >

src/hotspot/share/gc/shared/gcTrace.cpp

Print this page




  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/shared/copyFailedInfo.hpp"
  27 #include "gc/shared/gcHeapSummary.hpp"
  28 #include "gc/shared/gcId.hpp"
  29 #include "gc/shared/gcTimer.hpp"
  30 #include "gc/shared/gcTrace.hpp"
  31 #include "gc/shared/objectCountEventSender.hpp"
  32 #include "gc/shared/referenceProcessorStats.hpp"
  33 #include "memory/heapInspection.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "runtime/os.hpp"
  36 #include "utilities/globalDefinitions.hpp"
  37 #include "utilities/macros.hpp"
  38 #include "utilities/ticks.inline.hpp"
  39 #if INCLUDE_ALL_GCS
  40 #include "gc/g1/evacuationInfo.hpp"
  41 #endif
  42 
  43 void GCTracer::report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp) {
  44   _shared_gc_info.set_cause(cause);
  45   _shared_gc_info.set_start_timestamp(timestamp);
  46 }
  47 
  48 void GCTracer::report_gc_start(GCCause::Cause cause, const Ticks& timestamp) {
  49   report_gc_start_impl(cause, timestamp);
  50 }
  51 
  52 void GCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
  53   _shared_gc_info.set_sum_of_pauses(time_partitions->sum_of_pauses());
  54   _shared_gc_info.set_longest_pause(time_partitions->longest_pause());
  55   _shared_gc_info.set_end_timestamp(timestamp);
  56 
  57   send_phase_events(time_partitions);
  58   send_garbage_collection_event();
  59 }


 167 }
 168 
 169 void OldGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 170   GCTracer::report_gc_end_impl(timestamp, time_partitions);
 171   send_old_gc_event();
 172 }
 173 
 174 void ParallelOldTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 175   OldGCTracer::report_gc_end_impl(timestamp, time_partitions);
 176   send_parallel_old_event();
 177 }
 178 
 179 void ParallelOldTracer::report_dense_prefix(void* dense_prefix) {
 180   _parallel_old_gc_info.report_dense_prefix(dense_prefix);
 181 }
 182 
 183 void OldGCTracer::report_concurrent_mode_failure() {
 184   send_concurrent_mode_failure_event();
 185 }
 186 
 187 #if INCLUDE_ALL_GCS
 188 void G1MMUTracer::report_mmu(double time_slice_sec, double gc_time_sec, double max_time_sec) {
 189   send_g1_mmu_event(time_slice_sec * MILLIUNITS,
 190                     gc_time_sec * MILLIUNITS,
 191                     max_time_sec * MILLIUNITS);
 192 }
 193 
 194 void G1NewTracer::report_yc_type(G1YCType type) {
 195   _g1_young_gc_info.set_type(type);
 196 }
 197 
 198 void G1NewTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 199   YoungGCTracer::report_gc_end_impl(timestamp, time_partitions);
 200   send_g1_young_gc_event();
 201 }
 202 
 203 void G1NewTracer::report_evacuation_info(EvacuationInfo* info) {
 204   send_evacuation_info_event(info);
 205 }
 206 
 207 void G1NewTracer::report_evacuation_failed(EvacuationFailedInfo& ef_info) {


 235                                                   double predicted_allocation_rate,
 236                                                   double predicted_marking_length,
 237                                                   bool prediction_active) {
 238   send_adaptive_ihop_statistics(threshold,
 239                                 internal_target_occupancy,
 240                                 additional_buffer_size,
 241                                 current_occupancy,
 242                                 predicted_allocation_rate,
 243                                 predicted_marking_length,
 244                                 prediction_active);
 245 }
 246 
 247 void G1OldTracer::report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp) {
 248   _shared_gc_info.set_start_timestamp(timestamp);
 249 }
 250 
 251 void G1OldTracer::set_gc_cause(GCCause::Cause cause) {
 252   _shared_gc_info.set_cause(cause);
 253 }
 254 
 255 #endif


  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/shared/copyFailedInfo.hpp"
  27 #include "gc/shared/gcHeapSummary.hpp"
  28 #include "gc/shared/gcId.hpp"
  29 #include "gc/shared/gcTimer.hpp"
  30 #include "gc/shared/gcTrace.hpp"
  31 #include "gc/shared/objectCountEventSender.hpp"
  32 #include "gc/shared/referenceProcessorStats.hpp"
  33 #include "memory/heapInspection.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "runtime/os.hpp"
  36 #include "utilities/globalDefinitions.hpp"
  37 #include "utilities/macros.hpp"
  38 #include "utilities/ticks.inline.hpp"
  39 #if INCLUDE_G1GC
  40 #include "gc/g1/evacuationInfo.hpp"
  41 #endif
  42 
  43 void GCTracer::report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp) {
  44   _shared_gc_info.set_cause(cause);
  45   _shared_gc_info.set_start_timestamp(timestamp);
  46 }
  47 
  48 void GCTracer::report_gc_start(GCCause::Cause cause, const Ticks& timestamp) {
  49   report_gc_start_impl(cause, timestamp);
  50 }
  51 
  52 void GCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
  53   _shared_gc_info.set_sum_of_pauses(time_partitions->sum_of_pauses());
  54   _shared_gc_info.set_longest_pause(time_partitions->longest_pause());
  55   _shared_gc_info.set_end_timestamp(timestamp);
  56 
  57   send_phase_events(time_partitions);
  58   send_garbage_collection_event();
  59 }


 167 }
 168 
 169 void OldGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 170   GCTracer::report_gc_end_impl(timestamp, time_partitions);
 171   send_old_gc_event();
 172 }
 173 
 174 void ParallelOldTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 175   OldGCTracer::report_gc_end_impl(timestamp, time_partitions);
 176   send_parallel_old_event();
 177 }
 178 
 179 void ParallelOldTracer::report_dense_prefix(void* dense_prefix) {
 180   _parallel_old_gc_info.report_dense_prefix(dense_prefix);
 181 }
 182 
 183 void OldGCTracer::report_concurrent_mode_failure() {
 184   send_concurrent_mode_failure_event();
 185 }
 186 
 187 #if INCLUDE_G1GC
 188 void G1MMUTracer::report_mmu(double time_slice_sec, double gc_time_sec, double max_time_sec) {
 189   send_g1_mmu_event(time_slice_sec * MILLIUNITS,
 190                     gc_time_sec * MILLIUNITS,
 191                     max_time_sec * MILLIUNITS);
 192 }
 193 
 194 void G1NewTracer::report_yc_type(G1YCType type) {
 195   _g1_young_gc_info.set_type(type);
 196 }
 197 
 198 void G1NewTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 199   YoungGCTracer::report_gc_end_impl(timestamp, time_partitions);
 200   send_g1_young_gc_event();
 201 }
 202 
 203 void G1NewTracer::report_evacuation_info(EvacuationInfo* info) {
 204   send_evacuation_info_event(info);
 205 }
 206 
 207 void G1NewTracer::report_evacuation_failed(EvacuationFailedInfo& ef_info) {


 235                                                   double predicted_allocation_rate,
 236                                                   double predicted_marking_length,
 237                                                   bool prediction_active) {
 238   send_adaptive_ihop_statistics(threshold,
 239                                 internal_target_occupancy,
 240                                 additional_buffer_size,
 241                                 current_occupancy,
 242                                 predicted_allocation_rate,
 243                                 predicted_marking_length,
 244                                 prediction_active);
 245 }
 246 
 247 void G1OldTracer::report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp) {
 248   _shared_gc_info.set_start_timestamp(timestamp);
 249 }
 250 
 251 void G1OldTracer::set_gc_cause(GCCause::Cause cause) {
 252   _shared_gc_info.set_cause(cause);
 253 }
 254 
 255 #endif // INCLUDE_G1GC
< prev index next >