rt::task: Make current_stack_segment public again

This was done in 2145de8c and reverted in 0ada7c7f, but Servo needs it.

Closes #10065.
This commit is contained in:
Keegan McAllister 2013-10-28 20:28:41 -07:00
parent 8852cb7713
commit f6b236b9d2
1 changed files with 4 additions and 1 deletions

View 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
}