8280450: Add task queue printing to STW Full GCs

Reviewed-by: ayang, sjohanss
This commit is contained in:
Thomas Schatzl 2022-01-31 16:52:28 +00:00
parent dcc666d53d
commit 993a2488ef
2 changed files with 8 additions and 0 deletions

View File

@ -294,6 +294,10 @@ void G1FullCollector::phase1_mark_live_objects() {
}
scope()->tracer()->report_object_count_after_gc(&_is_alive);
#if TASKQUEUE_STATS
oop_queue_set()->print_and_reset_taskqueue_stats("Oop Queue");
array_queue_set()->print_and_reset_taskqueue_stats("ObjArrayOop Queue");
#endif
}
void G1FullCollector::phase2_prepare_compaction() {

View File

@ -2116,6 +2116,10 @@ void PSParallelCompact::marking_phase(ParallelOldTracer *gc_tracer) {
}
_gc_tracer.report_object_count_after_gc(is_alive_closure());
#if TASKQUEUE_STATS
ParCompactionManager::oop_task_queues()->print_and_reset_taskqueue_stats("Oop Queue");
ParCompactionManager::_objarray_task_queues->print_and_reset_taskqueue_stats("ObjArrayOop Queue");
#endif
}
class PSAdjustTask final : public WorkerTask {