Dead code elimination.

This commit is contained in:
Rafael Ávila de Espíndola
2011-05-24 19:07:30 -04:00
parent de2e84e5b0
commit 395940f7e3
7 changed files with 9 additions and 18 deletions

View File

@@ -13,7 +13,7 @@ rust_test_runtime::~rust_test_runtime() {
void
rust_domain_test::worker::run() {
rust_handle<rust_dom> *handle = kernel->create_domain(NULL, "test");
rust_handle<rust_dom> *handle = kernel->create_domain("test");
for (int i = 0; i < TASKS; i++) {
handle->referent()->create_task(NULL, "child");
}
@@ -49,9 +49,8 @@ void task_entry() {
void
rust_task_test::worker::run() {
rust_crate *crate = parent->suite->crate;
rust_handle<rust_dom> *handle =
kernel->create_domain(crate, "test");
kernel->create_domain("test");
rust_dom *domain = handle->referent();
domain->root_task->start((uintptr_t)&task_entry, (uintptr_t)NULL, 0);
domain->start_main_loop();