Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-23 02:59:25 +0300
committerAnna Henningsen <anna@addaleax.net>2019-01-27 18:20:27 +0300
commitbb774b1554ed7ad7e7b6d588ef5002382afb8183 (patch)
treebae63ca1e40f5828d16bf3d3e44dd684b272146c /src/node_report.cc
parentbafd80883ce2b7ac8f92f31119243af1473269f3 (diff)
report: do not use `uv_default_loop()` as fallback
Not seeing an associated `Environment` is a rare condition anyway, but using `uv_default_loop()` as a fallback is not thread-safe. PR-URL: https://github.com/nodejs/node/pull/25652 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r--src/node_report.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_report.cc b/src/node_report.cc
index db269903e04..0978d32d907 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -307,8 +307,6 @@ static void WriteNodeReport(Isolate* isolate,
writer.json_arraystart("libuv");
if (env != nullptr)
uv_walk(env->event_loop(), WalkHandle, static_cast<void*>(&writer));
- else
- uv_walk(uv_default_loop(), WalkHandle, static_cast<void*>(&writer));
writer.json_arrayend();