From fe90159b86c0a044ce0bcef534e4800ea35ba01b Mon Sep 17 00:00:00 2001 From: Rafael Ávila de Espíndola Date: Tue, 24 May 2011 15:51:22 -0400 Subject: "constant propagate" rust_new_exit_task_glue to its only use. --- src/rt/rust_upcall.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/rt/rust_upcall.cpp') diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 48d6a67ce44..c86a071eddf 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -560,8 +560,7 @@ upcall_start_task(rust_task *spawner, ", spawnee 0x%" PRIxPTR ", callsz %" PRIdPTR ")", task->name, task, spawnee_fn, callsz); - task->start((uintptr_t)rust_new_exit_task_glue, spawnee_fn, - args, callsz); + task->start(spawnee_fn, args, callsz); return task; } @@ -612,18 +611,17 @@ static void *rust_thread_start(void *ptr) extern "C" CDECL maybe_proxy * upcall_start_thread(rust_task *task, rust_proxy *child_task_proxy, - uintptr_t exit_task_glue, uintptr_t spawnee_fn, size_t callsz) { LOG_UPCALL_ENTRY(task); rust_dom *parenet_dom = task->dom; rust_handle *child_task_handle = child_task_proxy->handle(); LOG(task, task, - "exit_task_glue: " PTR ", spawnee_fn " PTR + "spawnee_fn " PTR ", callsz %" PRIdPTR ")", - exit_task_glue, spawnee_fn, callsz); + spawnee_fn, callsz); rust_task *child_task = child_task_handle->referent(); - child_task->start(exit_task_glue, spawnee_fn, + child_task->start(spawnee_fn, task->rust_sp, callsz); #if defined(__WIN32__) HANDLE thread; -- cgit 1.4.1-3-g733a5