This program currently leaks because the function env containing a pointer is freed simply with free, without iterating over its contents.
Which also raises the question of whether migrate_alloc should recursively migrate all sub-allocs.
use std;
fn x(_f: [int]) {}
fn main() {
std::task::spawn(bind x([1, 2, 3, 4, 5]));
}
This program currently leaks because the function env containing a pointer is freed simply with free, without iterating over its contents.
Which also raises the question of whether
migrate_allocshould recursively migrate all sub-allocs.