Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8338922: Parallel: Add task queue stats support in full GC #20694

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/parallel/psCompactionManager.cpp
Original file line number Diff line number Diff line change
@@ -198,8 +198,8 @@ void ParCompactionManager::remove_all_shadow_regions() {
_shadow_region_array->clear();
}

void ParCompactionManager::print_task_queue_stats() {
#if TASKQUEUE_STATS
void ParCompactionManager::print_task_queue_stats() {
if (!log_is_enabled(Trace, gc, task, stats)) {
return;
}
@@ -211,8 +211,8 @@ void ParCompactionManager::print_task_queue_stats() {

_oop_task_queues->print_taskqueue_stats(st, "Oop Queue");
_objarray_task_queues->print_taskqueue_stats(st, "ObjArrayOop Queue");
#endif // TASKQUEUE_STATS
}
#endif // TASKQUEUE_STATS

#ifdef ASSERT
void ParCompactionManager::verify_all_marking_stack_empty() {
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/psCompactionManager.hpp
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ class ParCompactionManager : public CHeapObj<mtGC> {
static bool steal(int queue_num, size_t& region);

// Print task queue stats
static void print_task_queue_stats();
TASKQUEUE_STATS_ONLY(static void print_task_queue_stats();)

// Process tasks remaining on any marking stack
void follow_marking_stacks();
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/psParallelCompact.cpp
Original file line number Diff line number Diff line change
@@ -1295,7 +1295,7 @@ void PSParallelCompact::marking_phase(ParallelOldTracer *gc_tracer) {
MarkFromRootsTask task(active_gc_threads);
ParallelScavengeHeap::heap()->workers().run_task(&task);

ParCompactionManager::print_task_queue_stats();
TASKQUEUE_STATS_ONLY(ParCompactionManager::print_task_queue_stats();)
}

// Process reference objects found during marking