• Deepti Gandluri's avatar
    Reland "[wasm] Lazy update instances on a shared Memory.Grow" · 365b637c
    Deepti Gandluri authored
    This is a reland of 80f06d6f
    
    Original change's description:
    > [wasm] Lazy update instances on a shared Memory.Grow
    > 
    >  - Introduce a GROW_SHARED_MEMORY interrupt, and handler
    >  - Memory objects for isolates are updated on a stack check, add
    >    tracking for isolates that hit the stack check
    >  - When enough memory is not reserved ahead of time, fail to grow
    >  - Add tracking for externalized buffers in the MemoryTracker so
    >    that the MemoryTracker will know when backing_stores can be freed.
    >  - For shared buffer, do not always allocate a new buffer when
    >    growing an externalized buffer
    > 
    > 
    > Change-Id: I9cf1be19f2f165fa6ea4096869f7d6365304c8c4
    > Bug: v8:8564
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1472430
    > Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
    > Reviewed-by: Ben Smith <binji@chromium.org>
    > Reviewed-by: Andreas Haas <ahaas@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#60064}
    
    Bug: v8:8564
    Change-Id: Id0cf8e42a9d54ac702dba351e248a1b92713c98a
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1506357Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
    Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60071}
    365b637c
execution.cc 23.8 KB