• Pierre Langlois's avatar
    [heap] Make maximum regular code object size a runtime value. · f4376ec8
    Pierre Langlois authored
    Executable V8 pages include 3 reserved OS pages: one for the writable
    header and two as guards. On systems with 64k OS pages, the amount of
    allocatable space left for objects can then be quite smaller than the
    page size, only 64k for each 256k page.
    
    This means regular code objects cannot be larger than 64k, while the
    maximum regular object size is fixed to 128k, half of the page size. As
    a result code object never reach this limit and we can end up filling
    regular pages with few large code objects.
    
    To fix this, we change the maximum code object size to be runtime value,
    set to half of the allocatable space per page. On systems with 64k OS
    pages, the limit will be 32k.
    
    Alternatively, we could increase the V8 page size to 512k on Arm64 linux
    so we wouldn't waste code space. However, systems with 4k OS pages are
    more common, and those with 64k pages tend to have more memory available
    so we should be able to live with it.
    
    Bug: v8:10808
    Change-Id: I5d807e7a3df89f1e9c648899e9ba2f8e2648264c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2460809Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
    Cr-Commit-Position: refs/heads/master@{#70569}
    f4376ec8
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
ast Loading commit data...
base Loading commit data...
builtins Loading commit data...
codegen Loading commit data...
common Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
d8 Loading commit data...
date Loading commit data...
debug Loading commit data...
deoptimizer Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
extensions Loading commit data...
flags Loading commit data...
handles Loading commit data...
heap Loading commit data...
ic Loading commit data...
init Loading commit data...
inspector Loading commit data...
interpreter Loading commit data...
json Loading commit data...
libplatform Loading commit data...
libsampler Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parsing Loading commit data...
profiler Loading commit data...
protobuf Loading commit data...
regexp Loading commit data...
roots Loading commit data...
runtime Loading commit data...
sanitizer Loading commit data...
snapshot Loading commit data...
strings Loading commit data...
tasks Loading commit data...
third_party Loading commit data...
torque Loading commit data...
tracing Loading commit data...
trap-handler Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...