Add a huge hack to allow the test runner to continue if a single task leaks

This is just until unwinding works. Adds a flag to the runtime to turn
the memory leak checks on task destruction into warnings instead of fatal
errors. I am so sorry.

Issue #428
This commit is contained in:
Brian Anderson 2011-07-19 23:33:37 -07:00
parent 3fb33008ce
commit a467e8e4e6
5 changed files with 39 additions and 1 deletions

View file

@ -459,6 +459,13 @@ debug_opaque(rust_task *task, type_desc *t, uint8_t *front)
}
}
extern "C" CDECL void
hack_allow_leaks(rust_task *task)
{
LOG(task, stdlib, "hack_allow_leaks");
task->local_region.hack_allow_leaks();
}
struct rust_box {
RUST_REFCOUNTED(rust_box)