rt: Make the logic that moves environments between tasks update the GC alloc chain correctly

This commit is contained in:
Patrick Walton
2011-09-26 15:06:26 -07:00
parent 47e5ab093a
commit ad19ab4c6f
4 changed files with 50 additions and 8 deletions

View File

@@ -204,6 +204,11 @@ rust_task : public kernel_owned<rust_task>, rust_cond
intptr_t get_ref_count() const { return ref_count; }
rust_chan *get_chan_by_handle(chan_handle *handle);
// FIXME: These functions only exist to get the tasking system off the
// ground. We should never be migrating shared boxes between tasks.
const type_desc *release_alloc(void *alloc);
void claim_alloc(void *alloc, const type_desc *tydesc);
};
//