about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-04 22:58:15 -0700
committerBrian Anderson <banderson@mozilla.com>2012-06-04 22:58:15 -0700
commite04e9488adfd06128e9fda3ff423e5e35f3357f5 (patch)
tree8f6440d7135c464e0754bcd06cb285062b873778 /src/rt/rust_upcall.cpp
parent422aec85d6c02c7ff46be7032a2436c22ffd37fa (diff)
downloadrust-e04e9488adfd06128e9fda3ff423e5e35f3357f5.tar.gz
rust-e04e9488adfd06128e9fda3ff423e5e35f3357f5.zip
Revert "rt: Unique allocations have -1 ref count"
This reverts commit 422aec85d6c02c7ff46be7032a2436c22ffd37fa.
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index 7a22d5016f9..21df231aee7 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -168,10 +168,7 @@ exchange_malloc(rust_task *task, type_desc *td, uintptr_t size) {
     void *p = task->kernel->malloc(total_size, "exchange malloc");
 
     rust_opaque_box *header = static_cast<rust_opaque_box*>(p);
-    header->ref_count = -1; // This is not ref counted
     header->td = td;
-    header->prev = 0;
-    header->next = 0;
 
     memset(&header[1], '\0', body_size);