aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-30 17:39:37 -0700
committerGraydon Hoare <[email protected]>2010-09-30 17:39:37 -0700
commit2e0d07540702ac6cabcc5670660c72f898d5cbd2 (patch)
treedf48c5f8070eb55f00db7c435e569782dee26d09 /src/rt/rust_builtin.cpp
parentDrop slots on block exits even when blocks have no statements. Part way to fi... (diff)
downloadrust-2e0d07540702ac6cabcc5670660c72f898d5cbd2.tar.xz
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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 8654e050..3a89cd5c 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 *