about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-05-25 17:22:14 -0700
committerBrian Anderson <banderson@mozilla.com>2012-05-30 21:23:34 -0700
commita2bbdd3f52a71beabc1beb964772d30045cbe949 (patch)
treeca1f96956b6e304ba31456b9c5ac085dafe3b06b /src/rt/rust_task.cpp
parent80dc2e11a12c0a77447b74ef3fea3eb3ba44faaa (diff)
downloadrust-a2bbdd3f52a71beabc1beb964772d30045cbe949.tar.gz
rust-a2bbdd3f52a71beabc1beb964772d30045cbe949.zip
rt: Remove upcall_shared_malloc/free/realloc
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 2331cccd590..5299de0ed34 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -7,7 +7,6 @@
 
 #include "rust_task.h"
 #include "rust_cc.h"
-#include "rust_upcall.h"
 #include "rust_env.h"
 #include "rust_port.h"
 
@@ -130,6 +129,8 @@ cleanup_task(cleanup_args *args) {
     }
 }
 
+extern "C" CDECL void upcall_exchange_free(void *ptr);
+
 // This runs on the Rust stack
 void task_start_wrapper(spawn_args *a)
 {
@@ -161,7 +162,7 @@ void task_start_wrapper(spawn_args *a)
         // free the environment (which should be a unique closure).
         const type_desc *td = env->td;
         td->drop_glue(NULL, NULL, td->first_param, box_body(env));
-        upcall_shared_free(env);
+        upcall_exchange_free(env);
     }
 
     // The cleanup work needs lots of stack