Skip to content

Commit

Permalink
Clear array split stats
Browse files Browse the repository at this point in the history
In Scavenger, when we clear stats for each GC cycle, we miss to clear 2
fields relevant for array splitting, causing the stats being cumulative
since the beginning of the run.

Marking array splitting is ok.

Signed-off-by: Aleksandar Micic <amicic@ca.ibm.com>
  • Loading branch information
amicic committed Oct 15, 2020
1 parent 120de74 commit 98f94bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gc/stats/ScavengerStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ MM_ScavengerStats::clear(bool firstIncrement)
_acquireScanListCount = 0;
_acquireListLockCount = 0;
_aliasToCopyCacheCount = 0;
_arraySplitCount = 0;
_arraySplitAmount = 0;
_workStallCount = 0;
_completeStallCount = 0;
_syncStallCount = 0;
Expand Down

0 comments on commit 98f94bd

Please sign in to comment.