about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-07-10 01:30:45 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-07-10 01:30:45 -0700
commit7efb9426394ce5854b906bd3d7394bfc2228a9d0 (patch)
treea8c56fafb33591f703e98d8777384a12b71b8929 /src/rt/rust_upcall.cpp
parent0babfd9f98a984b485c0d19344987d3db52f9fdb (diff)
downloadrust-7efb9426394ce5854b906bd3d7394bfc2228a9d0.tar.gz
rust-7efb9426394ce5854b906bd3d7394bfc2228a9d0.zip
rt: Remove the now-unused upcall_ivec_resize and upcall_ivec_spill, which allocated from the wrong heap
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index 383e856f69a..6dff394e49b 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -561,46 +561,6 @@ upcall_start_task(rust_task *spawner,
  * Resizes an interior vector that has been spilled to the heap.
  */
 extern "C" CDECL void
-upcall_ivec_resize(rust_task *task,
-                   rust_ivec *v,
-                   size_t newsz) {
-    LOG_UPCALL_ENTRY(task);
-
-    I(task->sched, !v->fill);
-
-    size_t new_alloc = next_power_of_two(newsz);
-    rust_ivec_heap *new_heap_part = (rust_ivec_heap *)
-        task->realloc(v->payload.ptr, new_alloc + sizeof(size_t));
-
-    new_heap_part->fill = newsz;
-    v->alloc = new_alloc;
-    v->payload.ptr = new_heap_part;
-}
-
-/**
- * Spills an interior vector to the heap.
- */
-extern "C" CDECL void
-upcall_ivec_spill(rust_task *task,
-                  rust_ivec *v,
-                  size_t newsz) {
-    LOG_UPCALL_ENTRY(task);
-    size_t new_alloc = next_power_of_two(newsz);
-
-    rust_ivec_heap *heap_part = (rust_ivec_heap *)
-        task->malloc(new_alloc + sizeof(size_t));
-    heap_part->fill = newsz;
-    memcpy(&heap_part->data, v->payload.data, v->fill);
-
-    v->fill = 0;
-    v->alloc = new_alloc;
-    v->payload.ptr = heap_part;
-}
-
-/**
- * Resizes an interior vector that has been spilled to the heap.
- */
-extern "C" CDECL void
 upcall_ivec_resize_shared(rust_task *task,
                           rust_ivec *v,
                           size_t newsz) {