]> git.lizzy.rs Git - rust.git/commitdiff
rt::task: Make current_stack_segment public again
authorKeegan McAllister <kmcallister@mozilla.com>
Tue, 29 Oct 2013 03:28:41 +0000 (20:28 -0700)
committerKeegan McAllister <kmcallister@mozilla.com>
Tue, 29 Oct 2013 03:59:45 +0000 (20:59 -0700)
This was done in 2145de8c and reverted in 0ada7c7f, but Servo needs it.

Closes #10065.

src/libstd/rt/task.rs

index 8f695763a255fcf1455828d1dcdf1d16c3ffcbcf..516a795a1adf10aa922781fa9cd4d450c6337049 100644 (file)
@@ -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
 }