Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2020-05-14 10:39:03 +0300
committerDaniel Bevenius <daniel.bevenius@gmail.com>2020-05-20 12:31:14 +0300
commitff016fbd8391883a6bb43d0a661d1baafa33ce86 (patch)
tree29c842e95d8d445c82c3281666b42daf9411254f /lib/internal/async_hooks.js
parentdaa65fba7d413691d55051457993405457fa2f41 (diff)
lib: update executionAsyncId/triggerAsyncId comment
This commit updates the comment referring to the executionAsyncId/triggerAsyncId pair being stored in a std::stack. It looks like this was changed from std::stack to AliasedFloat64Array in Commit 83e5215a4e8438a43b9f0002b7a43e2fd2dd37a4 ("async_hooks: use typed array stack as fast path"). PR-URL: https://github.com/nodejs/node/pull/33396 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/async_hooks.js')
-rw-r--r--lib/internal/async_hooks.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/internal/async_hooks.js b/lib/internal/async_hooks.js
index b7a8c581ccc..66ea96ce9d7 100644
--- a/lib/internal/async_hooks.js
+++ b/lib/internal/async_hooks.js
@@ -41,11 +41,11 @@ const {
execution_async_resources,
owner_symbol
} = async_wrap;
-// Store the pair executionAsyncId and triggerAsyncId in a std::stack on
-// Environment::AsyncHooks::async_ids_stack_ tracks the resource responsible for
-// the current execution stack. This is unwound as each resource exits. In the
-// case of a fatal exception this stack is emptied after calling each hook's
-// after() callback.
+// Store the pair executionAsyncId and triggerAsyncId in a AliasedFloat64Array
+// in Environment::AsyncHooks::async_ids_stack_ which tracks the resource
+// responsible for the current execution stack. This is unwound as each resource
+// exits. In the case of a fatal exception this stack is emptied after calling
+// each hook's after() callback.
const {
pushAsyncContext: pushAsyncContext_,
popAsyncContext: popAsyncContext_