• Samuel Groß's avatar
    [base] Abort on unexpected failures in OS::SetPermissions · 18159ba6
    Samuel Groß authored
    It is expected that changing page permissions can fail due to the system
    running out of memory. However, any other failure is unexpected and
    likely indicates a bug in the caller, such as changing the permissions
    of an invalid memory region. To allow distinguishing between these
    unexpected failures and expected OOM failures, this CL adds CHECKs into
    the low-level memory management routines to abort when an unexpected
    failure occurs.
    
    Similar logic could later be added to other low-level memory management
    routines that can legitimately fail due to OOM as well.
    
    Bug: chromium:1320126
    Change-Id: I3de6f4b2aed8962c91770b81382df34384584501
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3610445
    Commit-Queue: Samuel Groß <saelo@chromium.org>
    Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#80245}
    18159ba6
Name
Last commit
Last update
..
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
condition-variable.cc Loading commit data...
condition-variable.h Loading commit data...
elapsed-timer.h Loading commit data...
mutex.cc Loading commit data...
mutex.h Loading commit data...
platform-aix.cc Loading commit data...
platform-cygwin.cc Loading commit data...
platform-darwin.cc Loading commit data...
platform-freebsd.cc Loading commit data...
platform-fuchsia.cc Loading commit data...
platform-linux.cc Loading commit data...
platform-linux.h Loading commit data...
platform-macos.cc Loading commit data...
platform-openbsd.cc Loading commit data...
platform-posix-time.cc Loading commit data...
platform-posix-time.h Loading commit data...
platform-posix.cc Loading commit data...
platform-posix.h Loading commit data...
platform-qnx.cc Loading commit data...
platform-solaris.cc Loading commit data...
platform-starboard.cc Loading commit data...
platform-win32.cc Loading commit data...
platform.h Loading commit data...
semaphore.cc Loading commit data...
semaphore.h Loading commit data...
time.cc Loading commit data...
time.h Loading commit data...
wrappers.h Loading commit data...
yield-processor.h Loading commit data...