8368715: Serial: Add GCTraceTime for marking from roots subphases during full gc marking

Reviewed-by: fandreuzzi, tschatzl, iwalulya
This commit is contained in:
Albert Mingkun Yang 2025-09-29 07:26:43 +00:00
parent d53190ac44
commit 75269fdb49

View File

@ -482,6 +482,8 @@ void SerialFullGC::phase1_mark(bool clear_all_softrefs) {
ref_processor()->start_discovery(clear_all_softrefs);
{
GCTraceTime(Debug, gc, phases) tm_m("Marking From Roots", gc_timer());
// Start tracing from roots, there are 3 kinds of roots in full-gc.
//
// 1. CLD. This method internally takes care of whether class loading is