From 2145de8c8f0287449d0b131e3a297cd08cac12b6 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 12 Aug 2013 13:54:38 -0700 Subject: [PATCH 1/2] rt::task: Make current_stack_segment public Servo needs to tell SpiderMonkey about the stack bounds. --- src/libstd/rt/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index b50e794cce0..ac6714d8124 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -64,7 +64,7 @@ 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, + current_stack_segment: StackSegment, /// Always valid if the task is alive and not running. saved_context: Context } From 4fd5318594621df3e9a460fa583bc2d291ba4b3a Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Tue, 13 Aug 2013 09:10:05 -0700 Subject: [PATCH 2/2] Make rt::stack public Fixes #8478. --- src/libstd/rt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 1b9f28b95fb..2e2638b9ae7 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -112,7 +112,7 @@ mod message_queue; mod sleeper_list; /// Stack segments and caching. -mod stack; +pub mod stack; /// CPU context swapping. mod context;