We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12203a7 commit 301f900Copy full SHA for 301f900
src/rt/rust_task.cpp
@@ -587,6 +587,7 @@ rust_task::cleanup_after_turn() {
587
// stack and false otherwise.
588
bool
589
rust_task::new_big_stack() {
590
+ assert(stk);
591
// If we have a cached big stack segment, use it.
592
if (big_stack) {
593
// Check to see if we're already on the big stack.
@@ -612,12 +613,11 @@ rust_task::new_big_stack() {
612
613
}
614
615
big_stack->task = this;
- big_stack->next = stk ? stk->next : NULL;
616
+ big_stack->next = stk->next;
617
if (big_stack->next)
618
big_stack->next->prev = big_stack;
619
big_stack->prev = stk;
- if (stk)
620
- stk->next = big_stack;
+ stk->next = big_stack;
621
622
stk = big_stack;
623
0 commit comments