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:
authorChengzhong Wu <chengzhong.wcz@alibaba-inc.com>2022-05-17 06:40:40 +0300
committerBryan English <bryan@bryanenglish.com>2022-05-30 19:33:53 +0300
commitd91b489784df7fe591525d04cafb8ad175fc8d2a (patch)
treec18af1396c685ab16d9bd30cff03bbf8b3a2469b /configure
parent11c783fa63733a8cff9d983b233c04fac88359b3 (diff)
worker: fix heap snapshot crash on exit
Worker.parent_port_ can be released before the exit event of Worker. The parent_port_ is not owned by `node::worker::Worker`, thus the reference to it is not always valid, and accessing it at exit crashes the process. As the Worker.parent_port_ is only used in the memory info tracking, it can be safely removed. PR-URL: https://github.com/nodejs/node/pull/43123 Fixes: https://github.com/nodejs/node/issues/43122 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions