Skip to content

Commit aef93f5

Browse files
committed
[do not merge] debuuuuug
1 parent cbe2e1e commit aef93f5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/node.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4523,7 +4523,11 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
45234523
if (more)
45244524
continue;
45254525

4526+
fprintf(stderr, "before emitting beforeExit. alive = %d\n", uv_loop_alive(env.event_loop()));
4527+
uv_print_all_handles(env.event_loop(), stderr);
45264528
EmitBeforeExit(&env);
4529+
fprintf(stderr, "after emitting beforeExit. alive = %d\n", uv_loop_alive(env.event_loop()));
4530+
uv_print_all_handles(env.event_loop(), stderr);
45274531

45284532
// Emit `beforeExit` if the loop became alive either after emitting
45294533
// event, or after running some callbacks.

src/node_perf.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ void MarkGarbageCollectionEnd(Isolate* isolate,
213213
void* data) {
214214
Environment* env = static_cast<Environment*>(data);
215215
uv_async_t* async = new uv_async_t(); // coverity[leaked_storage]
216+
fprintf(stderr, "shooting into the dark here.\n");
216217
if (uv_async_init(env->event_loop(), async, PerformanceGCCallback))
217218
return delete async;
218219
async->data =

0 commit comments

Comments
 (0)