Skip to content

Commit cd12b7c

Browse files
committed
big updating appendices
1 parent 1db53db commit cd12b7c

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

document/core/appendix/changes.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ Change History
77
Since the original release 1.0 of the WebAssembly specification, a number of proposals for extensions have been integrated.
88
The following sections provide an overview of what has changed.
99

10+
Release XX
11+
~~~~~~~~~~
12+
13+
Threads and Atomics
14+
....................
15+
16+
Added a new concept of shared memory, denoting a memory which can be accessed by multiple host-created threads, and atomic instructions for synchronising shared memory concurrency [#proposal-threads]_.
17+
18+
* New :ref:`memory type <syntax-memtype>`: |SHARED|
19+
20+
* New :ref:`memory instructions <syntax-instr-memory>`: |ATOMICLOAD|, |ATOMICSTORE|, |ATOMICRMW|, |MEMORYATOMICNOTIFY|, |MEMORYATOMICWAIT|, |MEMORYATOMICFENCE|
21+
22+
.. note::
23+
The proposal does not add a mechanism for creating threads from within WebAssembly.
24+
Thread creation must be handled by the host.
25+
1026
Release 2.0
1127
~~~~~~~~~~~
1228

@@ -138,6 +154,9 @@ Added vector type and instructions that manipulate multiple numeric values in pa
138154
* New injection/projection :ref:`vector instructions <syntax-instr-vec>`: :math:`\K{i}\!N\!\K{x}\!M\!\K{.splat}`, :math:`\K{f}\!N\!\K{x}\!M\!\K{.splat}`, :math:`\K{i}\!N\!\K{x}\!M\!\K{.bitmask}`
139155

140156

157+
.. [#proposal-threads]
158+
https://github.com/WebAssembly/spec/tree/main/proposals/threads/
159+
141160
.. [#proposal-signext]
142161
https://github.com/WebAssembly/spec/tree/main/proposals/sign-extension-ops/
143162

document/core/appendix/implementation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Restrictions on the following dimensions may be imposed during :ref:`execution <
126126
* the number of allocated :ref:`global instances <syntax-globalinst>`
127127
* the size of a :ref:`table instance <syntax-tableinst>`
128128
* the size of a :ref:`memory instance <syntax-meminst>`
129+
* the number of threads in the :ref:`global configuration <syntax-config>`
130+
* the number of :ref:`suspended threads <exec-memory.atomic.waitx>` in the :ref:`global configuration <syntax-config>`
129131
* the number of :ref:`frames <syntax-frame>` on the :ref:`stack <stack>`
130132
* the number of :ref:`labels <syntax-label>` on the :ref:`stack <stack>`
131133
* the number of :ref:`values <syntax-val>` on the :ref:`stack <stack>`

document/core/appendix/index-types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ Category Constructor
2121
(reserved) :math:`\hex{5F}` .. :math:`\hex{41}`
2222
:ref:`Result type <syntax-resulttype>` :math:`[\epsilon]` :math:`\hex{40}` (-64 as |Bs7|)
2323
:ref:`Table type <syntax-tabletype>` :math:`\limits~\reftype` (none)
24-
:ref:`Memory type <syntax-memtype>` :math:`\limits` (none)
24+
:ref:`Memory type <syntax-memtype>` :math:`\limits~\share` (none)
2525
:ref:`Global type <syntax-globaltype>` :math:`\mut~\valtype` (none)
2626
======================================== =========================================== ===============================================================================

0 commit comments

Comments
 (0)