From 6a271b05277b1c60c3aefa69474e75a662b402a3 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Tue, 16 Aug 2016 19:02:57 -0500 Subject: Remove mutex from Trusted Use weak references rather than message passing to garbage-collect dead references. --- components/script/script_thread.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 5dcf965aaa5..ac6165d5c4f 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -31,7 +31,7 @@ use dom::bindings::global::GlobalRef; use dom::bindings::inheritance::Castable; use dom::bindings::js::{JS, MutNullableHeap, Root, RootCollection}; use dom::bindings::js::{RootCollectionPtr, RootedReference}; -use dom::bindings::refcounted::{LiveDOMReferences, Trusted}; +use dom::bindings::refcounted::Trusted; use dom::bindings::reflector::Reflectable; use dom::bindings::str::DOMString; use dom::bindings::trace::JSTraceable; @@ -948,8 +948,6 @@ impl ScriptThread { runnable.handler() } } - MainThreadScriptMsg::Common(CommonScriptMsg::RefcountCleanup(addr)) => - LiveDOMReferences::cleanup(addr), MainThreadScriptMsg::Common(CommonScriptMsg::CollectReports(reports_chan)) => self.collect_reports(reports_chan), MainThreadScriptMsg::DOMManipulation(task) => -- cgit v1.2.3