summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 198cda1d52..6e0b74d620 100644
--- a/src/env.h
+++ b/src/env.h
@@ -765,6 +765,12 @@ class Environment {
std::unique_ptr<inspector::Agent> inspector_agent_;
#endif
+ // handle_wrap_queue_ and req_wrap_queue_ needs to be at a fixed offset from
+ // the start of the class because it is used by
+ // src/node_postmortem_metadata.cc to calculate offsets and generate debug
+ // symbols for Environment, which assumes that the position of members in
+ // memory are predictable. For more information please refer to
+ // `doc/guides/node-postmortem-support.md`
HandleWrapQueue handle_wrap_queue_;
ReqWrapQueue req_wrap_queue_;
ListHead<HandleCleanup,