• Darius Mercadier's avatar
    [heap] Add fast allocation strategy (--gc-freelist-strategy=1) · b0abfb4f
    Darius Mercadier authored
    This CL adds a new FreeList strategy, that can be turned on by using flag
    `--gc-freelist-strategy=1`.  It is inspired by FreeListLegacy, and differs from
    it in the following ways:
     - Only has 3 categories: Medium, Large and Huge.
     - Any block that would have belong to tiniest, tiny or small in FreeListLegacy
       is considered wasted.
     - Allocation is done only in Huge, Medium and Large (in that order), using a
       first-fit strategy (only the first block of each freelist is ever considered
       though).
     - Performances is supposed to be better than FreeListLegacy, but memory usage
       should be higher (because fragmentation will probably be higher).
    
    Bug: v8:9329
    Change-Id: Ib399196788f1dfaa1aeddc3dc721375dd7da65f1
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1697248
    Commit-Queue: Darius Mercadier <dmercadier@google.com>
    Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#62667}
    b0abfb4f
flag-definitions.h 69.6 KB