about summary refs log tree commit diff
path: root/src/libstd/rt/task.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-10-28 20:28:41 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-10-28 20:59:45 -0700
commitf6b236b9d2780edc1336ea5f62c2ba0fed6e34c5 (patch)
tree1483ea006625ec864d513bd4db4f830d0d898c9e /src/libstd/rt/task.rs
parent8852cb7713c7867fc97832494588d3bb243136d8 (diff)
downloadrust-f6b236b9d2780edc1336ea5f62c2ba0fed6e34c5.tar.gz
rust-f6b236b9d2780edc1336ea5f62c2ba0fed6e34c5.zip
rt::task: Make current_stack_segment public again
This was done in 2145de8c and reverted in 0ada7c7f, but Servo needs it.

Closes #10065.
Diffstat (limited to 'src/libstd/rt/task.rs')
-rw-r--r--src/libstd/rt/task.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs
index 8f695763a25..516a795a1ad 100644
--- a/src/libstd/rt/task.rs
+++ b/src/libstd/rt/task.rs
@@ -73,7 +73,10 @@ pub struct Coroutine {
     /// The segment of stack on which the task is currently running or
     /// if the task is blocked, on which the task will resume
     /// execution.
-    priv current_stack_segment: StackSegment,
+    ///
+    /// Servo needs this to be public in order to tell SpiderMonkey
+    /// about the stack bounds.
+    current_stack_segment: StackSegment,
     /// Always valid if the task is alive and not running.
     saved_context: Context
 }