aboutsummaryrefslogtreecommitdiff
path: root/src/rt
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-07-28 16:57:58 -0700
committerGraydon Hoare <[email protected]>2010-07-28 20:30:29 -0700
commitfa70212c86976b1dc1396279ebddadf380a95909 (patch)
tree4104ff0170e958c3a68880268b9c34c7eb01731d /src/rt
parentNote that we keep running the main loop until all task refcounts are zero. (diff)
downloadrust-fa70212c86976b1dc1396279ebddadf380a95909.tar.xz
rust-fa70212c86976b1dc1396279ebddadf380a95909.zip
Log dead tasks when dom is just waiting for refcounts to drop.
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_dom.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rt/rust_dom.cpp b/src/rt/rust_dom.cpp
index 362c215e..99aaddb2 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();