"constant propagate" rust_new_exit_task_glue to its only use.
This commit is contained in:
@@ -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<rust_task> *
|
||||
upcall_start_thread(rust_task *task,
|
||||
rust_proxy<rust_task> *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<rust_task> *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;
|
||||
|
||||
Reference in New Issue
Block a user