Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8280450: Add task queue printing to STW Full GCs
Reviewed-by: ayang, sjohanss
  • Loading branch information
Thomas Schatzl committed Jan 31, 2022
1 parent dcc666d commit 993a248
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/share/gc/g1/g1FullCollector.cpp
Expand Up @@ -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() {
Expand Down
4 changes: 4 additions & 0 deletions src/hotspot/share/gc/parallel/psParallelCompact.cpp
Expand Up @@ -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 {
Expand Down

1 comment on commit 993a248

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.