• Samuel Groß's avatar
    Expose the size of the virtual memory cage · 2e9c972b
    Samuel Groß authored
    This CL exposes the size of the virtual memory cage to the embedder
    through V8::GetVirtualMemoryCageSizeInBytes(). This will for example be
    useful to collect metrics about the cage reservation, such as how
    frequently it fails, in the future. While collecting these metrics
    directly in V8 would also be possible, it would require access to an
    Isolate, which is not yet available when the cage is initialized. As
    such, it is easier to enable the embedder to collect these metrics.
    
    Bug: chromium:1218005
    Change-Id: Ie9c9ca7d1cd158ec024be6ab2418f50083b06d6e
    Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3172762Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Commit-Queue: Samuel Groß <saelo@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76969}
    2e9c972b
v8-initialization.h 9.74 KB