diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-12-06 02:39:16 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-05-15 20:37:40 +0300 |
commit | c7eeef568ce5a3714b89689160ec85c017527364 (patch) | |
tree | 1cbbbf9d968d54753cf41ae62ce97e7e0e149888 /src/node_options.cc | |
parent | d3a8a23089af06bb047bf9bad7531fbfc70f6314 (diff) |
cli: add `--trace-atomics-wait` flag
Adds a flag that helps with debugging deadlocks due to incorrectly
implemented `Atomics.wait()` calls.
PR-URL: https://github.com/nodejs/node/pull/33292
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_options.cc')
-rw-r--r-- | src/node_options.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index b3e7f403b05..013c3ef825e 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -435,6 +435,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { "throw an exception on deprecations", &EnvironmentOptions::throw_deprecation, kAllowedInEnvironment); + AddOption("--trace-atomics-wait", + "trace Atomics.wait() operations", + &EnvironmentOptions::trace_atomics_wait, + kAllowedInEnvironment); AddOption("--trace-deprecation", "show stack traces on deprecations", &EnvironmentOptions::trace_deprecation, |