<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>277743</bug_id>
          
          <creation_ts>2024-08-07 10:05:28 -0700</creation_ts>
          <short_desc>[WASM] Add support for multi-memory proposal</short_desc>
          <delta_ts>2026-03-24 11:02:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebAssembly</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>285505</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Degazio">d_degazio</reporter>
          <assigned_to name="David Degazio">d_degazio</assigned_to>
          <cc>anand_srinivasan</cc>
    
    <cc>chi187</cc>
    
    <cc>cryze92</cc>
    
    <cc>github</cc>
    
    <cc>jensaxel</cc>
    
    <cc>luka</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2051161</commentid>
    <comment_count>0</comment_count>
    <who name="David Degazio">d_degazio</who>
    <bug_when>2024-08-07 10:05:28 -0700</bug_when>
    <thetext>The multiple memories proposal for WASM has been fully standardized (phase 5) per https://github.com/WebAssembly/proposals, and is currently in the process of being merged into the spec. Beyond the fact we lack support for this feature, this also means we can&apos;t easily pull in newer versions of the spec tests without disabling some assertions. We should re-enable these checks once support for multiple memories is added to WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051162</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-07 10:05:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/133394285&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2073442</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Rubanov">chi187</who>
    <bug_when>2024-11-07 01:22:30 -0800</bug_when>
    <thetext>The proposal has been shipped in Firefox 120 (21/11/2023) and Chrome 125 (11/05/2024)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120927</commentid>
    <comment_count>3</comment_count>
    <who name="">github</who>
    <bug_when>2025-05-31 11:54:30 -0700</bug_when>
    <thetext>Are there any status updates on this? Looking at the Feature Status tracker[1] indicates that multiple memories support in Safari is essentially the only major blemish when it comes to browser compatibility in Stage 5 that can&apos;t just be &quot;compiled around&quot; (like lack of support for relaxed SIMD) or simply isn&apos;t relevant to browsers.

On a more personal level, this is a pain-point for languages targeting the browser that are looking at using WASM threads, which is Stage 4 but widely supported and a major landmark feature for compiler devs, that don&apos;t want to share ALL of their memory among threads.

1: https://webassembly.org/features/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126597</commentid>
    <comment_count>4</comment_count>
    <who name="">jensaxel</who>
    <bug_when>2025-06-29 11:47:08 -0700</bug_when>
    <thetext>Any news?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126966</commentid>
    <comment_count>5</comment_count>
    <who name="">luka</who>
    <bug_when>2025-07-01 04:34:23 -0700</bug_when>
    <thetext>Hi, I just wanted to add that supporting this feature would enable many important optimisations and useful patterns that would otherwise not be possible:

- In some cases, it would be possible to avoid JS-side memory copies by directly reading from/writing to a separate memory buffer in wasm
- It would enable having multiple large resizable buffers, which could simplify memory allocation logic and would avoid wasm memory heap fragmentation
- Having unshared memory when threading (as previously mentioned)
- Can be used to efficiently sandbox memory reads and writes in user-generated modules with an api that requires some main memory context (e.g. in plugins)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179560</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-09 13:41:14 -0800</bug_when>
    <thetext>Committed 307103@main (bdf26416947e): &lt;https://commits.webkit.org/307103@main&gt;

Reviewed commits have been landed. Closing PR #56967 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187162</commentid>
    <comment_count>7</comment_count>
    <who name="">anand_srinivasan</who>
    <bug_when>2026-03-04 16:39:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/171755537&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193177</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-24 11:02:17 -0700</bug_when>
    <thetext>Committed 309850@main (4ac3b92ed23f): &lt;https://commits.webkit.org/309850@main&gt;

Reviewed commits have been landed. Closing PR #58817 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>