diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-05-13 19:39:32 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-06 19:43:46 +0200 |
commit | b0404047c1e4f7652aaf6ecf911d5850d5acf570 (patch) | |
tree | f8e09cfda61b24d4c548e6d9ab560bfaa5d3a03a /node.gyp | |
parent | 749a13b76c351d515ed489844ece575b8918d2ed (diff) | |
download | android-node-v8-b0404047c1e4f7652aaf6ecf911d5850d5acf570.tar.gz android-node-v8-b0404047c1e4f7652aaf6ecf911d5850d5acf570.tar.bz2 android-node-v8-b0404047c1e4f7652aaf6ecf911d5850d5acf570.zip |
worker: add `SharedArrayBuffer` sharing
Logic is added to the `MessagePort` mechanism that
attaches hidden objects to those instances when they are transferred
that track their lifetime and maintain a reference count, to make
sure that memory is freed at the appropriate times.
Thanks to Stephen Belanger for reviewing this change in its original PR.
Refs: https://github.com/ayojs/ayo/pull/106
PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -353,6 +353,7 @@ 'src/node_i18n.cc', 'src/pipe_wrap.cc', 'src/process_wrap.cc', + 'src/sharedarraybuffer_metadata.cc', 'src/signal_wrap.cc', 'src/spawn_sync.cc', 'src/string_bytes.cc', @@ -412,6 +413,7 @@ 'src/udp_wrap.h', 'src/req_wrap.h', 'src/req_wrap-inl.h', + 'src/sharedarraybuffer_metadata.h', 'src/string_bytes.h', 'src/string_decoder.h', 'src/string_decoder-inl.h', |