• Darius Mercadier's avatar
    [heap] Optimize evacuation candidates selection · 1b92e36f
    Darius Mercadier authored
    To choose the evacuation candidates, all the pages were put in a
    vector, then sorted, and then only select if, among other thing, they
    had enough free bytes in them. It meant sorting a lot of pages that
    couldn't be selected.
    
    With this CL, only the pages with enough free bytes are put in the
    vector, which should (slightly) improve the time needing to select
    the evacuation candidates.
    
    Bug: v8:9329
    Change-Id: I0261fe3554c0bf75136a84a35d5c6a231762afe8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1680554Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Commit-Queue: Darius Mercadier <dmercadier@google.com>
    Cr-Commit-Position: refs/heads/master@{#62443}
    1b92e36f
mark-compact.cc 173 KB