diff options
author | Chengzhong Wu <chengzhong.wcz@alibaba-inc.com> | 2022-05-17 06:40:40 +0300 |
---|---|---|
committer | Bryan English <bryan@bryanenglish.com> | 2022-05-30 19:33:53 +0300 |
commit | d91b489784df7fe591525d04cafb8ad175fc8d2a (patch) | |
tree | c18af1396c685ab16d9bd30cff03bbf8b3a2469b /android-configure | |
parent | 11c783fa63733a8cff9d983b233c04fac88359b3 (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 'android-configure')
0 files changed, 0 insertions, 0 deletions