servo: Merge #14569 - Remove the Rc from ROOTED_TRACEABLES (from servo:ROOTED_TRACEABLES-Rc); r=emilio
authorMs2ger <Ms2ger@gmail.com>
Tue, 13 Dec 2016 23:32:29 -0800
changeset 340330 6f7d4c8793785affeae2b8764059111ddded5a3e
parent 340329 e07acb058a3141b0470a51bf9f6dff1a962747b0
child 340331 3d8ed74143f3093285641719434a448760406f1e
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
servo: Merge #14569 - Remove the Rc from ROOTED_TRACEABLES (from servo:ROOTED_TRACEABLES-Rc); r=emilio Source-Repo: https://github.com/servo/servo Source-Revision: 030cf90c57b5c51ce803c27dc3b036b7ce6a8002
servo/components/script/dom/bindings/trace.rs
--- a/servo/components/script/dom/bindings/trace.rs
+++ b/servo/components/script/dom/bindings/trace.rs
@@ -569,18 +569,18 @@ unsafe impl JSTraceable for RwLock<Media
 
 /// Holds a set of JSTraceables that need to be rooted
 pub struct RootedTraceableSet {
     set: Vec<*const JSTraceable>,
 }
 
 thread_local!(
     /// TLV Holds a set of JSTraceables that need to be rooted
-    static ROOTED_TRACEABLES: Rc<RefCell<RootedTraceableSet>> =
-        Rc::new(RefCell::new(RootedTraceableSet::new()));
+    static ROOTED_TRACEABLES: RefCell<RootedTraceableSet> =
+        RefCell::new(RootedTraceableSet::new());
 );
 
 impl RootedTraceableSet {
     fn new() -> RootedTraceableSet {
         RootedTraceableSet {
             set: vec![],
         }
     }