File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 766e29c0e1c31f26a44e6c9bc9c30f9be758544d
2
+ refs/heads/master: 06f4cb43f6bffe870116f2688dd5d5fc3d0af043
Original file line number Diff line number Diff line change @@ -178,7 +178,10 @@ rust_task::~rust_task()
178
178
I (sched, ref_count == 0 ); // ||
179
179
// (ref_count == 1 && this == sched->root_task));
180
180
181
- del_stk (this , stk);
181
+ // Delete all the stacks. There may be more than one if the task failed
182
+ while (stk != NULL ) {
183
+ del_stk (this , stk);
184
+ }
182
185
}
183
186
184
187
struct spawn_args {
Original file line number Diff line number Diff line change 1
1
// xfail-test
2
2
// compile-flags:--stack-growth
3
+ // error-pattern:explicit failure
3
4
fn getbig ( i : int ) {
4
5
if i != 0 {
5
6
getbig ( i - 1 ) ;
@@ -9,5 +10,5 @@ fn getbig(i: int) {
9
10
}
10
11
11
12
fn main ( ) {
12
- getbig ( 10000000 ) ;
13
+ getbig ( 100000 ) ;
13
14
}
You can’t perform that action at this time.
0 commit comments