From fa70212c86976b1dc1396279ebddadf380a95909 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Wed, 28 Jul 2010 16:57:58 -0700 Subject: [PATCH] Log dead tasks when dom is just waiting for refcounts to drop. --- src/rt/rust_dom.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_dom.cpp b/src/rt/rust_dom.cpp index 362c215e426..99aaddb2b15 100644 --- a/src/rt/rust_dom.cpp +++ b/src/rt/rust_dom.cpp @@ -414,8 +414,13 @@ rust_dom::start_main_loop() "waiting for %d dead tasks to become dereferenced ...", dead_tasks.length()); - log(rust_log::DOM, - "waiting for %" PRIxPTR, dead_tasks[0]); + if (_log.is_tracing(rust_log::DOM)) { + for (size_t i = 0; i < dead_tasks.length(); i++) { + log(rust_log::DOM, + "task: 0x%" PRIxPTR ", index: %d, ref_count: %d", + dead_tasks[i], i, dead_tasks[i]->ref_count); + } + } if (_incoming_message_queue.is_empty()) { _incoming_message_pending.wait();