From a493350eb5ab38ba8a6563f3eb4a090d257b0d3a Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Fri, 10 Sep 2010 01:21:29 -0700 Subject: Cleanup, refactoring, and some runtime tests. --- src/rt/rust_upcall.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/rt/rust_upcall.cpp') diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 4b5fa1d6..9a5e73f8 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -542,12 +542,8 @@ upcall_get_type_desc(rust_task *task, extern "C" CDECL rust_task * upcall_new_task(rust_task *spawner, const char *name) { LOG_UPCALL_ENTRY(spawner); - rust_dom *dom = spawner->dom; - rust_task *task = new (dom) rust_task(dom, spawner, name); - dom->log(rust_log::UPCALL | rust_log::MEM | rust_log::TASK, - "upcall new_task(spawner %s @0x%" PRIxPTR ", %s) = 0x%" PRIxPTR, - spawner->name, spawner, name, task); + rust_task *task = dom->create_task(spawner, name); return task; } -- cgit v1.2.3