diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-18 23:14:49 +0800 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-21 05:37:25 +0100 |
commit | f47adfbda5c06263a78c0c74a705b0d5d3cd2944 (patch) | |
tree | d2ade5033d55a842af0172ff6bc16054dd27df14 /src/node_file.cc | |
parent | 67c9f424b80ce0a3b86cfa54f030cb1b8fe11707 (diff) | |
download | android-node-v8-f47adfbda5c06263a78c0c74a705b0d5d3cd2944.tar.gz android-node-v8-f47adfbda5c06263a78c0c74a705b0d5d3cd2944.tar.bz2 android-node-v8-f47adfbda5c06263a78c0c74a705b0d5d3cd2944.zip |
src: fix DTrace GC callbacks DCHECKs and add cleanup
Use the variant of GC callbacks that takes data to
avoid running into DCHECKs when multiple Environments try to add
the same callback to the same isolate multiple times.
In addition, remove the callbacks in the Environment cleanup hook.
PR-URL: https://github.com/nodejs/node/pull/26742
Fixes: https://github.com/nodejs/node/issues/26736
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_file.cc')
0 files changed, 0 insertions, 0 deletions