Skip to content

Commit fc766ef

Browse files
committed
auto merge of #10141 : kmcallister/rust/current_stack_segment, r=alexcrichton
This was done in 2145de8 and reverted in 0ada7c7, but Servo needs it. Closes #10065. r? @brson
2 parents 7309158 + f6b236b commit fc766ef

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)