• Samuel Groß's avatar
    [sandbox] Fix heuristics in EPT::StartCompactingIfNeeded · 4e10c14e
    Samuel Groß authored
    The previous code incorrectly rounded down the number of entries to free
    to kBlockSize (expressed in KB) instead of kEntriesPerBlock (expressed
    in # of entries) to compute the start of the evacuation area. Further,
    depending on the block sized used, the previous heuristics does not
    necessarily guarantee that at least one full block would be evacuated.
    This CL fixes both of these issues.
    
    Bug: v8:10391
    Change-Id: I5ddecd5d582bcf89e1c52df431f006889685320a
    Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3837860Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Samuel Groß <saelo@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82557}
    4e10c14e
Name
Last commit
Last update
..
OWNERS Loading commit data...
external-pointer-inl.h Loading commit data...
external-pointer-table-inl.h Loading commit data...
external-pointer-table.cc Loading commit data...
external-pointer-table.h Loading commit data...
external-pointer.h Loading commit data...
sandbox.cc Loading commit data...
sandbox.h Loading commit data...
sandboxed-pointer-inl.h Loading commit data...
sandboxed-pointer.h Loading commit data...
testing.cc Loading commit data...
testing.h Loading commit data...