• Darius Mercadier's avatar
    Fix allocation of tiniest object in the tiny freelist · 05e98e56
    Darius Mercadier authored
    When trying to find a spot in the freelists for a tiniest object,
    the tiny freelist was never searched.
    
    This was fixed by modifying FreeList::Allocate in order to handle
    that special case.
    A test was added in cctest/heap/test-spaces.cc. It allocates a
    Tiny object on a new page, then fills up the page, then frees the
    first object, and finally tries to allocate a Tiniest
    object. Before, this Tiniest object would go on a different page;
    now it goes on the same one (which is what the test checks for).
    
    Bug: v8:9329
    Change-Id: Ia810726d1bfe1dae4ef2055a7f5b314b1514ee9c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1647162
    Commit-Queue: Darius Mercadier <dmercadier@google.com>
    Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#62055}
    05e98e56
Name
Last commit
Last update
..
heap-tester.h Loading commit data...
heap-utils.cc Loading commit data...
heap-utils.h Loading commit data...
test-alloc.cc Loading commit data...
test-array-buffer-tracker.cc Loading commit data...
test-compaction.cc Loading commit data...
test-concurrent-marking.cc Loading commit data...
test-embedder-tracing.cc Loading commit data...
test-external-string-tracker.cc Loading commit data...
test-heap.cc Loading commit data...
test-incremental-marking.cc Loading commit data...
test-invalidated-slots.cc Loading commit data...
test-iterators.cc Loading commit data...
test-lab.cc Loading commit data...
test-mark-compact.cc Loading commit data...
test-page-promotion.cc Loading commit data...
test-spaces.cc Loading commit data...
test-unmapper.cc Loading commit data...
test-weak-references.cc Loading commit data...