diff options
| author | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-11 16:08:26 -0700 |
|---|---|---|
| committer | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-11 16:08:45 -0700 |
| commit | 74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6 (patch) | |
| tree | 73abc23ff1587457b10279bc79d879d2e620f0be /src/rt/rust_port.cpp | |
| parent | c56ecc1d560a51878ffa4648d08110671707ae30 (diff) | |
| download | rust-74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6.tar.gz rust-74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6.zip | |
Ignore upcall_flush for channels that are disassociated from ports. This makes task-comm-10 break a little less hard, but it still leaks because messages pending in the channel are never freed.
Diffstat (limited to 'src/rt/rust_port.cpp')
| -rw-r--r-- | src/rt/rust_port.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp index c97b5d4170a..fa7790b6025 100644 --- a/src/rt/rust_port.cpp +++ b/src/rt/rust_port.cpp @@ -54,9 +54,9 @@ void rust_port::log_state() { for (uint32_t i = 0; i < chans.length(); i++) { rust_chan *chan = chans[i]; task->log(rust_log::COMM, - "\tchan: 0x%" PRIxPTR ", data pending: %s, remote: %s", + "\tchan: 0x%" PRIxPTR ", size: %d, remote: %s", chan, - !chan->buffer.is_empty() ? "yes" : "no", + chan->buffer.size(), chan == remote_channel ? "yes" : "no"); } } |
