From f6b236b9d2780edc1336ea5f62c2ba0fed6e34c5 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 28 Oct 2013 20:28:41 -0700 Subject: [PATCH] rt::task: Make current_stack_segment public again This was done in 2145de8c and reverted in 0ada7c7f, but Servo needs it. Closes #10065. --- src/libstd/rt/task.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }