Add rust_task::gc(size_t args) method that drops us back into the GC glue.
This commit is contained in:
@@ -345,6 +345,14 @@ rust_task::fail(size_t nargs) {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
rust_task::gc(size_t nargs)
|
||||
{
|
||||
dom->log(rust_log::TASK|rust_log::MEM,
|
||||
"task 0x%" PRIxPTR " garbage collecting", this);
|
||||
run_after_return(nargs, dom->root_crate->get_gc_glue());
|
||||
}
|
||||
|
||||
void
|
||||
rust_task::notify_waiting_tasks()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user