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
path: root/src/env.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2021-12-26 22:51:42 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2022-01-01 21:36:51 +0300
commita4795ada8b0c725cafc6f5e0ffbc864cd09b9db7 (patch)
tree19800b3e98d25a5cd3d4358accf7f1cf1aede50c /src/env.h
parent69ea6775f456ce33032f3c1de01b07260679a88c (diff)
src: split out async stack corruption detection from inline fn
This is fairly expensive code that unnecessarily bloats the contents of the inline function. PR-URL: https://github.com/nodejs/node/pull/41331 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 63724b07a6b..5af2eaa6669 100644
--- a/src/env.h
+++ b/src/env.h
@@ -774,6 +774,8 @@ class AsyncHooks : public MemoryRetainer {
friend class Environment; // So we can call the constructor.
explicit AsyncHooks(v8::Isolate* isolate, const SerializeInfo* info);
+ [[noreturn]] void FailWithCorruptedAsyncStack(double expected_async_id);
+
// Stores the ids of the current execution context stack.
AliasedFloat64Array async_ids_stack_;
// Attached to a Uint32Array that tracks the number of active hooks for