rt: Turn on cycle collection at task death; add a test case

This commit is contained in:
Patrick Walton
2011-09-23 18:30:22 -07:00
parent ad19ab4c6f
commit 5c973142df
4 changed files with 34 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#include "rust_internal.h"
#include "rust_cc.h"
#include "valgrind.h"
#include "memcheck.h"
@@ -75,7 +76,8 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
failed(false),
killed(false),
propagate_failure(true),
dynastack(this)
dynastack(this),
cc_counter(0)
{
LOGPTR(sched, "new task", (uintptr_t)this);
DLOG(sched, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this);