diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-14 14:41:04 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-17 02:44:24 +0800 |
commit | cab1dc5bb346b6c4d0e02e6785715af6ff6fb090 (patch) | |
tree | 9978077693ef273f3d19bf2b4f1a9e1cc9df1582 /node.gyp | |
parent | c6c37e9e850fa2a30b12a0d0fd0dfe144eda0959 (diff) | |
download | node-new-cab1dc5bb346b6c4d0e02e6785715af6ff6fb090.tar.gz |
src: use RAII to manage the main isolate data
This patch encapsulates the main isolate management into a
NodeMainInstance class that manages the resources with RAII
and controls the Isolate::CreateParams (which is necessary
for deserializing snapshots with external references)
PR-URL: https://github.com/nodejs/node/pull/27220
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -460,6 +460,7 @@ 'src/node_http_parser_traditional.cc', 'src/node_http2.cc', 'src/node_i18n.cc', + 'src/node_main_instance.cc', 'src/node_messaging.cc', 'src/node_metadata.cc', 'src/node_native_module.cc', @@ -540,6 +541,7 @@ 'src/node_http2_state.h', 'src/node_i18n.h', 'src/node_internals.h', + 'src/node_main_instance.h', 'src/node_messaging.h', 'src/node_metadata.h', 'src/node_mutex.h', |