src/share/vm/gc_implementation/shared/gcTrace.cpp

Print this page




 155 void YoungGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 156   assert_set_gc_id();
 157   assert(_tenuring_threshold != UNSET_TENURING_THRESHOLD, "Tenuring threshold has not been reported");
 158 
 159   GCTracer::report_gc_end_impl(timestamp, time_partitions);
 160   send_young_gc_event();
 161 
 162   _tenuring_threshold = UNSET_TENURING_THRESHOLD;
 163 }
 164 
 165 void YoungGCTracer::report_promotion_failed(const PromotionFailedInfo& pf_info) {
 166   assert_set_gc_id();
 167 
 168   send_promotion_failed_event(pf_info);
 169 }
 170 
 171 void YoungGCTracer::report_tenuring_threshold(const uint tenuring_threshold) {
 172   _tenuring_threshold = tenuring_threshold;
 173 }
 174 





















 175 void OldGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 176   assert_set_gc_id();
 177 
 178   GCTracer::report_gc_end_impl(timestamp, time_partitions);
 179   send_old_gc_event();
 180 }
 181 
 182 void ParallelOldTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 183   assert_set_gc_id();
 184 
 185   OldGCTracer::report_gc_end_impl(timestamp, time_partitions);
 186   send_parallel_old_event();
 187 }
 188 
 189 void ParallelOldTracer::report_dense_prefix(void* dense_prefix) {
 190   assert_set_gc_id();
 191 
 192   _parallel_old_gc_info.report_dense_prefix(dense_prefix);
 193 }
 194 




 155 void YoungGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 156   assert_set_gc_id();
 157   assert(_tenuring_threshold != UNSET_TENURING_THRESHOLD, "Tenuring threshold has not been reported");
 158 
 159   GCTracer::report_gc_end_impl(timestamp, time_partitions);
 160   send_young_gc_event();
 161 
 162   _tenuring_threshold = UNSET_TENURING_THRESHOLD;
 163 }
 164 
 165 void YoungGCTracer::report_promotion_failed(const PromotionFailedInfo& pf_info) {
 166   assert_set_gc_id();
 167 
 168   send_promotion_failed_event(pf_info);
 169 }
 170 
 171 void YoungGCTracer::report_tenuring_threshold(const uint tenuring_threshold) {
 172   _tenuring_threshold = tenuring_threshold;
 173 }
 174 
 175 bool YoungGCTracer::should_report_promotion_in_new_plab_event() const {
 176   return should_send_promotion_in_new_plab_event();
 177 }
 178 
 179 bool YoungGCTracer::should_report_promotion_outside_plab_event() const {
 180   return should_send_promotion_outside_plab_event();
 181 }
 182 
 183 void YoungGCTracer::report_promotion_in_new_plab_event(Klass* klass, size_t obj_size,
 184                                                        uint age, bool tenured,
 185                                                        size_t plab_size) const {
 186   assert_set_gc_id();
 187   send_promotion_in_new_plab_event(klass, obj_size, age, tenured, plab_size);
 188 }
 189 
 190 void YoungGCTracer::report_promotion_outside_plab_event(Klass* klass, size_t obj_size,
 191                                                         uint age, bool tenured) const {
 192   assert_set_gc_id();
 193   send_promotion_outside_plab_event(klass, obj_size, age, tenured);
 194 }
 195 
 196 void OldGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 197   assert_set_gc_id();
 198 
 199   GCTracer::report_gc_end_impl(timestamp, time_partitions);
 200   send_old_gc_event();
 201 }
 202 
 203 void ParallelOldTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
 204   assert_set_gc_id();
 205 
 206   OldGCTracer::report_gc_end_impl(timestamp, time_partitions);
 207   send_parallel_old_event();
 208 }
 209 
 210 void ParallelOldTracer::report_dense_prefix(void* dense_prefix) {
 211   assert_set_gc_id();
 212 
 213   _parallel_old_gc_info.report_dense_prefix(dense_prefix);
 214 }
 215