Skip to content

Commit 61d9ab9

Browse files
Xiaolong Pengshipilev
Xiaolong Peng
authored andcommittedMar 5, 2025
8350854: Include thread counts in safepoint logging
Reviewed-by: shade, dholmes
1 parent ea9e3cf commit 61d9ab9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/hotspot/share/runtime/safepoint.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,16 @@ void SafepointTracing::end() {
989989
"Reaching safepoint: " JLONG_FORMAT " ns, "
990990
"At safepoint: " JLONG_FORMAT " ns, "
991991
"Leaving safepoint: " JLONG_FORMAT " ns, "
992-
"Total: " JLONG_FORMAT " ns",
992+
"Total: " JLONG_FORMAT " ns, "
993+
"Threads: %d runnable, %d total",
993994
VM_Operation::name(_current_type),
994995
_last_app_time_ns,
995996
_last_safepoint_sync_time_ns - _last_safepoint_begin_time_ns,
996997
_last_safepoint_leave_time_ns - _last_safepoint_sync_time_ns,
997998
_last_safepoint_end_time_ns - _last_safepoint_leave_time_ns,
998-
_last_safepoint_end_time_ns - _last_safepoint_begin_time_ns
999+
_last_safepoint_end_time_ns - _last_safepoint_begin_time_ns,
1000+
_nof_running,
1001+
_nof_threads
9991002
);
10001003

10011004
RuntimeService::record_safepoint_end(_last_safepoint_end_time_ns - _last_safepoint_sync_time_ns);

0 commit comments

Comments
 (0)
Please sign in to comment.