• Clemens Hammacher's avatar
    Reland "[wasm] Introduce a soft limit on reserved memory" · 5e94b208
    Clemens Hammacher authored
    This is a reland of 3bb5cb63
    
    Original change's description:
    > [wasm] Introduce a soft limit on reserved memory
    > 
    > Currently, wasm memory and wasm code use a shared limit for the total
    > size of reservations. This can cause wasm code reservations to fail
    > because wasm memories used all available reservation space.
    > This CL introduces a soft limit which is used when allocating wasm
    > memory with full guards. If this limit is reached and the respective
    > flag is set, we fall back to allocation without full guards and check
    > against the hard limit. Code reservations always check against the hard
    > limit.
    > 
    > R=ahaas@chromium.org
    > 
    > Bug: v8:8196
    > Change-Id: I3fcbaeaa6f72c972d408d291af5d6b788d43151d
    > Reviewed-on: https://chromium-review.googlesource.com/1233614
    > Reviewed-by: Andreas Haas <ahaas@chromium.org>
    > Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#56028}
    
    Bug: v8:8196
    Change-Id: If8baf429b02e23b344346f7335bc911b99ae5579
    Reviewed-on: https://chromium-review.googlesource.com/1233756Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#56044}
    5e94b208
wasm-memory.h 5.42 KB