about summary refs log tree commit diff
path: root/src/libgreen
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2014-07-05 00:47:09 -0700
committerVadim Chugunov <vadimcn@gmail.com>2014-08-04 17:43:47 -0700
commitbf76e0023114fb47cc8fc766dc2f3d5db8c696a2 (patch)
treecd269e2e354f879eacc6a8afa1e628f45cd3ae7b /src/libgreen
parentbf420e58c2f88c8f37f83aaf947e7abba1cd7f79 (diff)
downloadrust-bf76e0023114fb47cc8fc766dc2f3d5db8c696a2.tar.gz
rust-bf76e0023114fb47cc8fc766dc2f3d5db8c696a2.zip
libnative should not mess with stack limits in the TIB. Only libgreen has a legitimate need to set them.
Diffstat (limited to 'src/libgreen')
-rw-r--r--src/libgreen/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgreen/context.rs b/src/libgreen/context.rs
index 45f41181bf8..d681e53af42 100644
--- a/src/libgreen/context.rs
+++ b/src/libgreen/context.rs
@@ -105,11 +105,11 @@ impl Context {
             // invalid for the current task. Lucky for us `rust_swap_registers`
             // is a C function so we don't have to worry about that!
             match in_context.stack_bounds {
-                Some((lo, hi)) => stack::record_stack_bounds(lo, hi),
+                Some((lo, hi)) => stack::record_stack_bounds_green(lo, hi),
                 // If we're going back to one of the original contexts or
                 // something that's possibly not a "normal task", then reset
                 // the stack limit to 0 to make morestack never fail
-                None => stack::record_stack_bounds(0, uint::MAX),
+                None => stack::record_stack_bounds_green(0, uint::MAX),
             }
             rust_swap_registers(out_regs, in_regs)
         }