Skip to content

Commit

Permalink
Merge pull request #7055 from theresa-m/unusedvariable
Browse files Browse the repository at this point in the history
Remove unused counters
  • Loading branch information
babsingh authored Jul 5, 2023
2 parents a213f3f + 30f6a40 commit bcc94e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gc/base/segregated/SweepSchemeSegregated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ MM_SweepSchemeSegregated::incrementalSweepSmall(MM_EnvironmentBase *env)
if ((actualSweepRegions = sweepList->dequeue(env->getRegionWorkList(), sweepSmallRegionsPerIteration)) > 0) {
regionPool->decrementCurrentCountOfSweepRegions(sizeClass, actualSweepRegions);
regionPool->decrementCurrentTotalCountOfSweepRegions(actualSweepRegions);
uintptr_t freedRegions = 0, processedRegions = 0;
MM_HeapRegionQueue *fullList = env->getRegionLocalFull();
while ((currentRegion = env->getRegionWorkList()->dequeue()) != NULL) {
sweepRegion(env, currentRegion);
Expand All @@ -552,9 +551,7 @@ MM_SweepSchemeSegregated::incrementalSweepSmall(MM_EnvironmentBase *env)
currentRegion->emptyRegionReturned(env);
currentRegion->setFree(1);
env->getRegionLocalFree()->enqueue(currentRegion);
freedRegions++;
}
processedRegions++;

if (updateSweepSmallRegionCount()) {
yieldFromSweep(env, yieldSlackTime);
Expand Down

0 comments on commit bcc94e4

Please sign in to comment.