Skip to content

Commit f3f9570

Browse files
committed
add warnings
1 parent 7f7636e commit f3f9570

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

encoding.bs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,11 @@ method, when invoked, must run these steps:
12391239
avoids this copy. When doing so they will have to make sure that changes to <var>input</var> do
12401240
not affect future calls to <a method><code>decode()</code></a>.
12411241

1242+
<p class=warning id=sharedarraybuffer-warning>The memory exposed by <code>SharedArrayBuffer</code>
1243+
objects does not adhere to data race freedom properties required by the memory model of
1244+
programming languages typically used for implementations. When implementing, take care to use the
1245+
appropriate facilities when accessing memory exposed by <code>SharedArrayBuffer</code> objects.
1246+
12421247
<li><p>Let <var>output</var> be a new <a for=/>stream</a>.
12431248

12441249
<li>
@@ -1407,8 +1412,13 @@ method, when invoked, must run these steps:
14071412

14081413
<li><p>Otherwise, increment <var>read</var> by 1.
14091414

1410-
<li><p>Write the bytes in <var>result</var> into <var>destinationBytes</var>, from byte
1411-
offset <var>written</var>.
1415+
<li>
1416+
<p>Write the bytes in <var>result</var> into <var>destinationBytes</var>, from byte offset
1417+
<var>written</var>.
1418+
1419+
<p class=warning>See the
1420+
<a href=#sharedarraybuffer-warning>warning for <code>SharedyArrayBuffer</code> objects</a>
1421+
above.
14121422

14131423
<li><p>Increment <var>written</var> by the number of bytes in <var>result</var>.
14141424
</ol>

0 commit comments

Comments
 (0)