aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2016-08-16 19:02:57 -0500
committerAnthony Ramine <n.oxyde@gmail.com>2016-08-29 11:56:28 +0200
commit6a271b05277b1c60c3aefa69474e75a662b402a3 (patch)
tree13212cf566b6e3c3d80a101ad99ca083fb39b288 /components/script/script_runtime.rs
parentd37d4d697ae8c8897384213be82f25a51a4aa835 (diff)
downloadservo-6a271b05277b1c60c3aefa69474e75a662b402a3.tar.gz
servo-6a271b05277b1c60c3aefa69474e75a662b402a3.zip
Remove mutex from Trusted
Use weak references rather than message passing to garbage-collect dead references.
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r--components/script/script_runtime.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs
index b16ca804f5c..124bf8f2b84 100644
--- a/components/script/script_runtime.rs
+++ b/components/script/script_runtime.rs
@@ -6,7 +6,7 @@
//! script thread, the dom, and the worker threads.
use dom::bindings::js::{RootCollection, RootCollectionPtr, trace_roots};
-use dom::bindings::refcounted::{LiveDOMReferences, TrustedReference, trace_refcounted_objects};
+use dom::bindings::refcounted::{LiveDOMReferences, trace_refcounted_objects};
use dom::bindings::trace::trace_traceables;
use dom::bindings::utils::DOM_CALLBACKS;
use js::glue::CollectServoSizes;
@@ -35,8 +35,6 @@ pub enum CommonScriptMsg {
/// Requests that the script thread measure its memory usage. The results are sent back via the
/// supplied channel.
CollectReports(ReportsChan),
- /// A DOM object's last pinned reference was removed (dispatched to all threads).
- RefcountCleanup(TrustedReference),
/// Generic message that encapsulates event handling.
RunnableMsg(ScriptThreadEventCategory, Box<Runnable + Send>),
}