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>
This commit is contained in:
parent
bafd80883c
commit
bb774b1554
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user