about summary refs log tree commit diff
path: root/src/rt/rust_cc.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-03-15 17:42:33 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-03-16 15:38:42 +0100
commit22bef74b550b2b08338ebb43363f3d09df6413b9 (patch)
tree1a96fdf8b865c54e4d0a64391451bb913d97ea50 /src/rt/rust_cc.cpp
parent140d194007bbb427ab694807782b3a41bb43b27d (diff)
downloadrust-22bef74b550b2b08338ebb43363f3d09df6413b9.tar.gz
rust-22bef74b550b2b08338ebb43363f3d09df6413b9.zip
Remove shared tydescs
All tydescs are static now, there's no need to worry about
marshalling them between threads anymore.
Diffstat (limited to 'src/rt/rust_cc.cpp')
-rw-r--r--src/rt/rust_cc.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/rt/rust_cc.cpp b/src/rt/rust_cc.cpp
index 95208b311ee..de454fc2f84 100644
--- a/src/rt/rust_cc.cpp
+++ b/src/rt/rust_cc.cpp
@@ -18,9 +18,6 @@
 // collection.
 #define RUST_CC_FREQUENCY   5000
 
-// defined in rust_upcall.cpp:
-void upcall_s_free_shared_type_desc(type_desc *td);
-
 using namespace std;
 
 namespace cc {
@@ -534,9 +531,6 @@ class sweep : public shape::data<sweep,shape::ptr> {
                   // free closed over data:
                   shape::data<sweep,shape::ptr>::walk_fn_contents1();
                   
-                  // now free the embedded type descr:
-                  upcall_s_free_shared_type_desc((type_desc*)pair.env->td);
-                  
                   // now free the ptr:
                   task->kernel->free(pair.env);
               }
@@ -563,12 +557,9 @@ class sweep : public shape::data<sweep,shape::ptr> {
     }
 
     void walk_tydesc2(char kind) {
-        type_desc *td = *(type_desc **)dp;
         switch(kind) {
           case shape::SHAPE_TYDESC:
-            break;
           case shape::SHAPE_SEND_TYDESC:
-            upcall_s_free_shared_type_desc(td);
             break;
           default: abort();
         }