• Joyee Cheung's avatar
    Fix the NearHeapLimitCallback test when single genration is enabled · e9ad915a
    Joyee Cheung authored
    Normally, taking a heap snapshot in the near heap limit would
    result in a full GC, then the overhead of the promotions would
    cause another invocation of the heap limit callback and it can
    raise the limit in the second call to avoid an OOM, so we test
    that the callback can indeed raise the limit this way in this
    case. When there is only one generation, however, there would
    not be the overhead of promotions so the callback may not be
    triggered again during the generation of the heap snapshot.
    In that case we only need to check that the callback is called
    and it can perform GC-triggering operations jsut fine there.
    
    Bug: v8:12815
    Change-Id: If244417624b56bc068aed480fb3391d26c19005a
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3600357Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#80094}
    e9ad915a
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-allocation.cc Loading commit data...
test-concurrent-marking.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-mark-compact.cc Loading commit data...
test-memory-measurement.cc Loading commit data...
test-page-promotion.cc Loading commit data...
test-shared-heap.cc Loading commit data...
test-spaces.cc Loading commit data...
test-unmapper.cc Loading commit data...
test-weak-references.cc Loading commit data...
test-write-barrier.cc Loading commit data...