summaryrefslogtreecommitdiff
path: root/COLLABORATOR_GUIDE.md
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-02-02 15:15:35 +0100
committerAnna Henningsen <anna@addaleax.net>2019-02-04 18:18:02 +0100
commit5506dcdd73a69b353c12c7137d6cba49a4c07123 (patch)
treec39164d2bfc1b7137bf8892e91ca0e86cafb8b7f /COLLABORATOR_GUIDE.md
parentdfe5f8f288329ed1e92e46cc2507c16db8ae249e (diff)
downloadandroid-node-v8-5506dcdd73a69b353c12c7137d6cba49a4c07123.tar.gz
android-node-v8-5506dcdd73a69b353c12c7137d6cba49a4c07123.tar.bz2
android-node-v8-5506dcdd73a69b353c12c7137d6cba49a4c07123.zip
src: fix race condition in `~NodeTraceBuffer`
Libuv does not guarantee that handles have their close callbacks called in the order in which they were added (and in fact, currently calls them in reverse order). This patch ensures that the `flush_signal_` handle is no longer in use (i.e. its close callback has already been run) when we signal to the main thread that `~NodeTraceBuffer` may be destroyed. The same applies for `~NodeTraceWriter`. Credit for debugging goes to Gireesh Punathil. Fixes: https://github.com/nodejs/node/issues/25512 Co-authored-by: Gireesh Punathil <gpunathi@in.ibm.com> PR-URL: https://github.com/nodejs/node/pull/25896 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Diffstat (limited to 'COLLABORATOR_GUIDE.md')
0 files changed, 0 insertions, 0 deletions