More delicious dead code removal from runtime, upcalls.

This commit is contained in:
Graydon Hoare
2011-05-26 18:20:48 -07:00
parent 4f792f2dbb
commit 79c9e13073
18 changed files with 50 additions and 602 deletions

View File

@@ -131,8 +131,6 @@ rust_task::~rust_task()
(ref_count == 1 && this == dom->root_task));
del_stk(dom, stk);
if (cache)
cache->deref();
}
extern "C" void rust_new_exit_task_glue();
@@ -597,18 +595,11 @@ rust_task::unblock() {
}
rust_crate_cache *
rust_task::get_crate_cache(rust_crate const *curr_crate)
rust_task::get_crate_cache()
{
if (cache && cache->crate != curr_crate) {
DLOG(dom, task, "switching task crate-cache to crate 0x%"
PRIxPTR, curr_crate);
cache->deref();
cache = NULL;
}
if (!cache) {
DLOG(dom, task, "fetching cache for current crate");
cache = dom->get_cache(curr_crate);
cache = dom->get_cache();
}
return cache;
}