SharedArrayBuffer

SharedArrayBuffer (JavaScript)

仕様書

状態

[11] ArrayBuffer と同じく、 ArrayBufferDataArrayBufferByteLength を持ちます。

ArrayBuffer を参照。

[12] ArrayBufferData の値は共有データブロックとなります。

文脈

[13] SharedArrayBuffer コンストラクターバイト数を指定することで、 (AllocateSharedArrayBuffer により) 指定した長さSharedArrayBufferインスタンスを作成できます。

[14] SharedArrayBuffer オブジェクトslice メソッドは、新しい SharedArrayBuffer オブジェクトを作成します。

[15] 構造化クローンにより作成されることがあります。

演算

[16] 仕様書で使われる内部の演算として、 detach に関する IsDetachedBuffer があります。

歴史

[1] ECMAScript Shared Memory and Atomics () https://tc39.github.io/ecmascript_sharedmem/shmem.html

[2] Integrate SharedArrayBuffers · Issue #2260 · whatwg/html () https://github.com/whatwg/html/issues/2260

[3] StructuredClone serialize / deserialize · Issue #935 · whatwg/html () https://github.com/whatwg/html/issues/935

[4] Do we need to mandate agents and event loops being 1:1? · Issue #2526 · whatwg/html () https://github.com/whatwg/html/issues/2526

[5] Serializing and deserializing SharedArrayBuffer (annevk著, ) https://github.com/whatwg/html/commit/b3f8779c76de7718bc970fdbccda18a5164d2f98

[6] The WHATWG Blog — HTML and shared memory () https://blog.whatwg.org/html-and-shared-memory

[7] SharedArrayBuffer + Atomics · Issue #165 · w3ctag/design-reviews () https://github.com/w3ctag/design-reviews/issues/165

[8] SharedArrayBuffer - JavaScript | MDN () https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer

[9] Add [AllowShared] to allow accepting SharedArrayBuffers (domenic著, ) https://github.com/heycam/webidl/commit/c59bdcbcf2039c89eb7ea9a35e1e2dba621519ec

[17] Actions required to mitigate Speculative Side-Channel Attack techniques - The Chromium Projects () https://www.chromium.org/Home/chromium-security/ssca

[18] Mitigating speculative execution side-channel attacks in Microsoft Edge and Internet Explorer - Microsoft Edge Dev BlogMicrosoft Edge Dev Blog () https://blogs.windows.com/msedgedev/2018/01/03/speculative-execution-mitigations-microsoft-edge-internet-explorer/

[19] Mitigations landing for new class of timing attack | Mozilla Security Blog () https://blog.mozilla.org/security/2018/01/03/mitigations-landing-new-class-timing-attack/

[20] Speculative execution side-channel attack ("Spectre") — Mozilla () https://www.mozilla.org/en-US/security/advisories/mfsa2018-01/

[21] 181266 – Disable SharedArrayBuffers from Web API () https://bugs.webkit.org/show_bug.cgi?id=181266

[22] What Spectre and Meltdown Mean For WebKit | WebKit () https://webkit.org/blog/8048/what-spectre-and-meltdown-mean-for-webkit/

[23] Meltdown/Spectre  |  Web  |  Google Developers () https://developers.google.com/web/updates/2018/02/meltdown-spectre

[24] Clarify and explain agents and agent clusters (domenic著, ) https://github.com/whatwg/html/commit/db6d0df0b681d0b83a35b60302ad5077e59bb8aa

[25] Add Origin-aware Transferrables · Issue #3766 · whatwg/html () https://github.com/whatwg/html/issues/3766

[26] Add worklets to JavaScript agent clusters (hoch著, ) https://github.com/whatwg/html/commit/bddeb25e72fc44456057c846a87775c65f0f9d42

[27] Add a Privacy and Security Considerations section (Ms2ger著, ) https://github.com/heycam/webidl/commit/4d049be92182a1dcf02d8a0a0b6dc60586a395dc

[28] Add a Privacy and Security Considerations section by Ms2ger · Pull Request #647 · heycam/webidl () https://github.com/heycam/webidl/pull/647

[29] Allow SharedArrayBuffer (annevk著, ) https://github.com/whatwg/encoding/commit/c1ad763cbece33a7fd51397c6de24faa74c98318

[30] Make decode() and encodeInto() accept SharedArrayBuffer-backed views · Issue #172 · whatwg/encoding () https://github.com/whatwg/encoding/issues/172

[31] Allow SharedArrayBuffer by annevk · Pull Request #182 · whatwg/encoding () https://github.com/whatwg/encoding/pull/182