v8/test/unittests/utils
Clemens Backes 205fb2958b Fail earlier on FreePages
{FreePages} is never expected to fail, and each caller wraps the call in
a CHECK macro. In order to learn more about failures, this CL moves the
CHECK inside of {::FreePages}, to fail whenever the {PageAllocator}
fails to free pages.

As a next step, I'll audit our {PageAllocator} implementations to ensure
that none of them return {false} for {FreePages}. Note that this is
already the case for the gin platform (chromium).

R=mlippautz@chromium.org

Bug: v8:12656, chromium:1299735
Change-Id: Ib61be6cc8da0110ead2db1ad005728bd061e0243
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3484321
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79248}
2022-02-24 10:12:50 +00:00
..
allocation-unittest.cc Fail earlier on FreePages 2022-02-24 10:12:50 +00:00
detachable-vector-unittest.cc Move unittest files 2019-05-27 08:52:23 +00:00
locked-queue-unittest.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
utils-unittest.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00