• Thiabaud Engelbrecht's avatar
    Reland "[v8] Use |AllocateAtLeast| for resizing v8 zones." · 2a7f86ed
    Thiabaud Engelbrecht authored
    This is a reland of commit 4444874c
    This fixes a failure on the UBSan bots caused by assuming |Realloc| is always in-place if the new size is <= the value of |malloc_usable_size|.
    
    Original change's description:
    > [v8] Use |AllocateAtLeast| for resizing v8 zones.
    >
    > This is part of an ongoing effort to reduce fragmentation in Chrome.  Partition alloc shows v8 zones are a large user of memory in Renderer processes, and that there is fragmentation from these allocations. This CL will reduce this fragmentation by allowing v8 to use all allocated memory for its zones.
    >
    > Bug: v8:13193, chromium:1238858
    > Change-Id: Ibeac8bdba9d0e7ff66b14a3dde10e7c87d3cf953
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3889361
    > Reviewed-by: Adam Klein <adamk@chromium.org>
    > Commit-Queue: Thiabaud Engelbrecht <thiabaud@google.com>
    > Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#83235}
    
    Bug: v8:13193, chromium:1238858
    Change-Id: I923bcbce8403dd7d84642340fd7202087b8a4440
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3910268Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Commit-Queue: Thiabaud Engelbrecht <thiabaud@google.com>
    Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#83372}
    2a7f86ed
Name
Last commit
Last update
..
OWNERS Loading commit data...
accounting-allocator.cc Loading commit data...
accounting-allocator.h Loading commit data...
compressed-zone-ptr.h Loading commit data...
type-stats.cc Loading commit data...
type-stats.h Loading commit data...
zone-allocator.h Loading commit data...
zone-chunk-list.h Loading commit data...
zone-compression.h Loading commit data...
zone-containers.h Loading commit data...
zone-handle-set.h Loading commit data...
zone-hashmap.h Loading commit data...
zone-list-inl.h Loading commit data...
zone-list.h Loading commit data...
zone-segment.cc Loading commit data...
zone-segment.h Loading commit data...
zone-type-traits.h Loading commit data...
zone-utils.h Loading commit data...
zone.cc Loading commit data...
zone.h Loading commit data...