Unverified Commit 5d80ae3a authored by Anna Henningsen's avatar Anna Henningsen Committed by Matheus Marchini
Browse files

trace_events: forbid tracing modifications from worker threads

Forbid modifying tracing state from worker threads, either
through the built-in module or inspector sessions, since
the main thread owns all global state, and at least
the `async_hooks` integration is definitely not thread
safe in its current state.

PR-URL: https://github.com/nodejs/node/pull/23781
Fixes: https://github.com/nodejs/node/issues/22767
Refs: https://github.com/nodejs/node/issues/22513


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarRichard Lau <riclau@uk.ibm.com>
Reviewed-By: default avatarMatheus Marchini <mat@mmarchini.me>
parent 036fbdb6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment