Skip to content

src: avoid race condition in tracing code

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/tracing-race into master

json_trace_writer_ is protected by stream_mutex_, but one access to it was not guarded by a lock on said mutex.

Refs: https://github.com/nodejs/node/issues/25512

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading