src: add lock to inspector `MainThreadHandle` dtor · nodejs/node@adaa2ae · GitHub
Skip to content

Commit adaa2ae

Browse files
committed
src: add lock to inspector MainThreadHandle dtor
Otherwise, the `CHECK` is reported to be a race condition by automated tooling. It’s not easy to tell from looking at the source code whether that is actually the case or not, but adding this lock should be a safe way to resolve it. PR-URL: #26010 Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 60c5099 commit adaa2ae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/inspector/main_thread_interface.h

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)