8316428: G1: Nmethod count statistics only count last code root set iterated

Reviewed-by: iwalulya, ayang
This commit is contained in:
Thomas Schatzl 2023-09-19 08:30:17 +00:00
parent 283c360392
commit fab372d3a2

@ -849,7 +849,7 @@ public:
// Scan the code root list attached to the current region
r->code_roots_do(&cl);
_code_roots_scanned = cl.count();
_code_roots_scanned += cl.count();
event.commit(GCId::current(), _worker_id, G1GCPhaseTimes::phase_name(_code_roots_phase));
}