Skip to content

Commit fab372d

Browse files
author
Thomas Schatzl
committed
8316428: G1: Nmethod count statistics only count last code root set iterated
Reviewed-by: iwalulya, ayang
1 parent 283c360 commit fab372d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/g1/g1RemSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ class G1ScanCollectionSetRegionClosure : public HeapRegionClosure {
849849
// Scan the code root list attached to the current region
850850
r->code_roots_do(&cl);
851851

852-
_code_roots_scanned = cl.count();
852+
_code_roots_scanned += cl.count();
853853

854854
event.commit(GCId::current(), _worker_id, G1GCPhaseTimes::phase_name(_code_roots_phase));
855855
}

0 commit comments

Comments
 (0)