Skip to content

Commit f6b236b

Browse files
author
Keegan McAllister
committed
rt::task: Make current_stack_segment public again
This was done in 2145de8 and reverted in 0ada7c7, but Servo needs it. Closes #10065.
1 parent 8852cb7 commit f6b236b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/rt/task.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ pub struct Coroutine {
7373
/// The segment of stack on which the task is currently running or
7474
/// if the task is blocked, on which the task will resume
7575
/// execution.
76-
priv current_stack_segment: StackSegment,
76+
///
77+
/// Servo needs this to be public in order to tell SpiderMonkey
78+
/// about the stack bounds.
79+
current_stack_segment: StackSegment,
7780
/// Always valid if the task is alive and not running.
7881
saved_context: Context
7982
}

0 commit comments

Comments
 (0)