[heap] Avoid unnecessary expansion of compaction spaces
This fixes a corner case during young generation evacuation: 1) Sweeping is in progress, but all pages are swept. 2) The main thread has acquired all swept pages. 3) A compaction space cannot get any swept page and has to allocate a new page. This reduces memory usage of ArrayLiteralInitialSpreadLargeDoubleHoley microbenchmark by 2x. Bug: chromium:934453 Change-Id: I146d22a408910ae89adbfbac5822448952f5f0c7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1505798Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#60069}
Showing
Please
register
or
sign in
to comment