aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index faefda42904..cb757d97f93 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -85,7 +85,7 @@ use std::rc::Rc;
use std::u32;
use time::{Tm, strptime};
-thread_local!(pub static StackRoots: Cell<Option<RootCollectionPtr>> = Cell::new(None))
+thread_local!(pub static STACK_ROOTS: Cell<Option<RootCollectionPtr>> = Cell::new(None))
#[deriving(Copy)]
pub enum TimerSource {
@@ -161,7 +161,7 @@ pub struct StackRootTLS;
impl StackRootTLS {
pub fn new(roots: &RootCollection) -> StackRootTLS {
- StackRoots.with(|ref r| {
+ STACK_ROOTS.with(|ref r| {
r.set(Some(RootCollectionPtr(roots as *const _)))
});
StackRootTLS
@@ -170,7 +170,7 @@ impl StackRootTLS {
impl Drop for StackRootTLS {
fn drop(&mut self) {
- StackRoots.with(|ref r| r.set(None));
+ STACK_ROOTS.with(|ref r| r.set(None));
}
}