diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-12-06 14:02:32 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2011-12-06 14:02:32 -0800 |
| commit | 39b1657b2cb17960f72467c4cb31d8ac7969661d (patch) | |
| tree | a7f6997068282f7fa72b95e7165abcb3df18ca0c /src/rt/rust_task.cpp | |
| parent | 7bf41392b62f8e118ac21842804808c516b953b0 (diff) | |
| parent | 89efb7d9810643eb1b25c04e63203b591915448f (diff) | |
| download | rust-39b1657b2cb17960f72467c4cb31d8ac7969661d.tar.gz rust-39b1657b2cb17960f72467c4cb31d8ac7969661d.zip | |
Merge branch 'master' of github.com:graydon/rust
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index f0ab8c57c35..b540225243f 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -2,8 +2,8 @@ #include "rust_internal.h" #include "rust_cc.h" -#include "valgrind.h" -#include "memcheck.h" +#include "vg/valgrind.h" +#include "vg/memcheck.h" #ifndef __WIN32__ #include <execinfo.h> @@ -131,6 +131,9 @@ rust_task::~rust_task() // (ref_count == 1 && this == sched->root_task)); // Delete all the stacks. There may be more than one if the task failed + // FIXME: This is not correct. During unwinding we need to delete + // the stacks and record the stack limit, otherwise the stack + // stack is corrupted when destructors are running. while (stk != NULL) { del_stk(this, stk); } |
