Commit c172ffc
Compact retained maps array more often
When we add maps to the retained maps array, we compacted the array if
it's full. But, since we are now adding maps in a batch, it's unlikely
to meet the condition. Thus, update the condition to check whether new
size exceeds the capacity.
Bug: 398528460
Change-Id: I89caa47b69532c6397596edfe5caf7c7d24768cc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6330019
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Choongwoo Han <choongwoo.han@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#99163}1 parent 03bd506 commit c172ffc
2 files changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6337 | 6337 | | |
6338 | 6338 | | |
6339 | 6339 | | |
6340 | | - | |
| 6340 | + | |
| 6341 | + | |
6341 | 6342 | | |
6342 | 6343 | | |
6343 | 6344 | | |
6344 | | - | |
6345 | | - | |
| 6345 | + | |
| 6346 | + | |
6346 | 6347 | | |
6347 | 6348 | | |
6348 | 6349 | | |
| |||
6360 | 6361 | | |
6361 | 6362 | | |
6362 | 6363 | | |
6363 | | - | |
| 6364 | + | |
6364 | 6365 | | |
6365 | 6366 | | |
6366 | 6367 | | |
| |||
6372 | 6373 | | |
6373 | 6374 | | |
6374 | 6375 | | |
6375 | | - | |
| 6376 | + | |
6376 | 6377 | | |
6377 | 6378 | | |
6378 | 6379 | | |
| |||
6386 | 6387 | | |
6387 | 6388 | | |
6388 | 6389 | | |
6389 | | - | |
| 6390 | + | |
6390 | 6391 | | |
6391 | 6392 | | |
6392 | 6393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
| 1820 | + | |
| 1821 | + | |
1820 | 1822 | | |
1821 | 1823 | | |
1822 | 1824 | | |
| |||
0 commit comments