diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2010-09-30 17:39:37 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2010-09-30 17:39:37 -0700 |
| commit | 2e0d07540702ac6cabcc5670660c72f898d5cbd2 (patch) | |
| tree | df48c5f8070eb55f00db7c435e569782dee26d09 /src/rt/rust_builtin.cpp | |
| parent | 62c224ffe4845ed3a1f651d05ea0be84d5c870ea (diff) | |
| download | rust-2e0d07540702ac6cabcc5670660c72f898d5cbd2.tar.gz rust-2e0d07540702ac6cabcc5670660c72f898d5cbd2.zip | |
Fix bug in bind thunks failing top drop unbound args; add test and adjust rustc to use bind again.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 8654e0507a8..3a89cd5c445 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -338,6 +338,10 @@ debug_fn(rust_task *task, type_desc *t, rust_fn *fn) debug_tydesc_helper(task, t); task->log(rust_log::STDLIB, " thunk at 0x%" PRIxPTR, fn->thunk); task->log(rust_log::STDLIB, " closure at 0x%" PRIxPTR, fn->closure); + if (fn->closure) { + task->log(rust_log::STDLIB, " refcount %" PRIdPTR, + fn->closure->ref_count); + } } extern "C" CDECL void * |
