• Clemens Backes's avatar
    [wasm] Do not count jump table size twice · 139a2f51
    Clemens Backes authored
    The jump table sizes were added to the estimated code size, and then
    again added for computing the reservation size for the code. This CL
    moves the jump table size from {EstimateNativeModuleCodeSize} to
    {EstimateNativeModuleMetaDataSize} so it is still considered for the
    total memory associated with the {NativeModule}, but only added once for
    the code space reservation.
    
    R=ahaas@chromium.org
    
    Bug: v8:12520
    Change-Id: I871e54833659a0d466f3e8359bb3b515c85dd3cb
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3367622Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78491}
    139a2f51
wasm-code-manager.cc 101 KB