8133456: HeapRegionManager::shrink_by() iterates suboptimally across regions

Reviewed-by: brutisso, tbenson
This commit is contained in:
Thomas Schatzl 2015-08-24 16:32:50 +02:00
parent 472a3333a8
commit 494872e535

View file

@ -428,7 +428,7 @@ uint HeapRegionManager::shrink_by(uint num_regions_to_remove) {
uncommit_regions(idx_last_found + num_last_found - to_remove, to_remove);
cur -= num_last_found;
cur = idx_last_found;
removed += to_remove;
}