Add callable gc method exposed to user code, use it in mlist-cycle.rs test (still not quite working; some memory corruption in the recursive tag constructors, not the GC)
This commit is contained in:
@@ -81,6 +81,11 @@ refcount(rust_task *task, type_desc *t, size_t *v) {
|
||||
return (*v) - 1;
|
||||
}
|
||||
|
||||
extern "C" CDECL void
|
||||
gc(rust_task *task) {
|
||||
task->gc(1);
|
||||
}
|
||||
|
||||
extern "C" CDECL rust_vec*
|
||||
vec_alloc(rust_task *task, type_desc *t, size_t n_elts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user