mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8133456: HeapRegionManager::shrink_by() iterates suboptimally across regions
Reviewed-by: brutisso, tbenson
This commit is contained in:
parent
472a3333a8
commit
494872e535
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue