diff options
| author | Eric Reed <ereed@mozilla.com> | 2013-06-17 12:45:40 -0700 |
|---|---|---|
| committer | Eric Reed <ereed@mozilla.com> | 2013-06-17 12:45:40 -0700 |
| commit | 35f3fa6383b5ed278879bfe5c74a913b885a2d4f (patch) | |
| tree | be8ca61c0beccd0b4c5d1e486c5322c1181c49f5 /src/rt/rust_task.cpp | |
| parent | 33ae193a3c1a156e73bf6880366c9785dd4b7393 (diff) | |
| parent | 319cf6e465f203c794d71800808c2bd60a1e7613 (diff) | |
| download | rust-35f3fa6383b5ed278879bfe5c74a913b885a2d4f.tar.gz rust-35f3fa6383b5ed278879bfe5c74a913b885a2d4f.zip | |
Merge remote-tracking branch 'upstream/io' into io
Conflicts: src/libstd/rt/uvio.rs
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index b5ecb166175..f9b588b7850 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -587,6 +587,7 @@ rust_task::cleanup_after_turn() { // stack and false otherwise. bool rust_task::new_big_stack() { + assert(stk); // If we have a cached big stack segment, use it. if (big_stack) { // Check to see if we're already on the big stack. @@ -616,8 +617,7 @@ rust_task::new_big_stack() { if (big_stack->next) big_stack->next->prev = big_stack; big_stack->prev = stk; - if (stk) - stk->next = big_stack; + stk->next = big_stack; stk = big_stack; |
